summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-23 07:08:33 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-23 07:08:33 +0000
commit8ca62f32aa81191b767b33365132c51c2b9ca56d (patch)
tree7540c6ca2035e45d5acd8be069e1195005f43f04 /firmware
parente32e180244a410088f97affda08d62521b78a054 (diff)
sd-as3525v2: correct CGU_MEMSTICK setting, shift divider
Add a note about the unknown clock register git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24869 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index b0a3c021a7..d76c21cb04 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -454,9 +454,10 @@ int sd_init(void)
1; /* clock source = PLLA */
CGU_MEMSTICK = (1<<8) | (1<<7) |
- (CLK_DIV(AS3525_PLLA_FREQ, AS3525_MS_FREQ) -1) | 1;
+ ((CLK_DIV(AS3525_PLLA_FREQ, AS3525_MS_FREQ) -1) << 2) | 1;
- /* ?? */
+ /* FIXME: divider should be shifted by 2, but doing prevents card
+ * initialisation */
*(volatile int*)(CGU_BASE+0x3C) = (1<<7) |
(CLK_DIV(AS3525_PLLA_FREQ, 24000000) -1) | 1;