diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-02-06 14:33:40 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-02-06 14:33:40 +0000 |
commit | 8d234fc9a3765fcfd2376c3cf63f10f3cfe1d6f9 (patch) | |
tree | 70823447751f813cbe85b7b158c998105453b1d6 /firmware/target/arm/as3525 | |
parent | e96d139b4a0734f53a68c129acb96573009e1cb2 (diff) |
as3525: add a few more CGU_PERI definitions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24537 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 6c3299eea3..23c65ae041 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -171,7 +171,7 @@ static void sdram_delay(void) /* Use the same initialization than OF */ static void sdram_init(void) { - CGU_PERI |= (1<<26)|(1<<27); /* extmem & extmem intf clocks */ + CGU_PERI |= (CGU_EXTMEM_CLOCK_ENABLE|CGU_EXTMEMIF_CLOCK_ENABLE); MPMC_CONTROL = 0x1; /* enable MPMC */ @@ -301,7 +301,7 @@ void system_init(void) (AS3525_FCLK_PREDIV << 2) | AS3525_FCLK_SEL); /* Set PCLK frequency */ - CGU_PERI = ((CGU_PERI & 0xffffff80) | /* reset divider bits 0:6 */ + CGU_PERI = ((CGU_PERI & ~0x7F) | /* reset divider bits 0:6 */ (AS3525_PCLK_DIV0 << 2) | (AS3525_PCLK_DIV1 << 6) | AS3525_PCLK_SEL); |