Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180264
b: refs/heads/master
c: 828df43
h: refs/heads/master
v: v3
  • Loading branch information
Baruch Siach authored and Sascha Hauer committed Jan 26, 2010
1 parent ffdf486 commit 11efc2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fadc095622dd188cae88eb2f3ff28fd6e9d2d2f1
refs/heads/master: 828df43f139c7fbf0d505c7b9a666d321a0f2c25
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-mx25/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ int __init mx25_clocks_init(void)
for (i = 0; i < ARRAY_SIZE(lookups); i++)
clkdev_add(&lookups[i]);

/* Turn off all clocks except the ones we need to survive, namely:
* EMI, GPIO1-3 (CCM_CGCR1[18:16]), GPT1, IOMUXC (CCM_CGCR1[27]), IIM,
* SCC
*/
__raw_writel((1 << 19), CRM_BASE + CCM_CGCR0);
__raw_writel((0xf << 16) | (3 << 26), CRM_BASE + CCM_CGCR1);
__raw_writel((1 << 5), CRM_BASE + CCM_CGCR2);

mxc_timer_init(&gpt_clk, MX25_IO_ADDRESS(MX25_GPT1_BASE_ADDR), 54);

return 0;
Expand Down

0 comments on commit 11efc2a

Please sign in to comment.