1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Rafaël Carré 2010-02-23 07:08:33 +00:00
parent e32e180244
commit 8ca62f32aa

View file

@ -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;