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:
parent
e32e180244
commit
8ca62f32aa
1 changed files with 3 additions and 2 deletions
|
|
@ -454,9 +454,10 @@ int sd_init(void)
|
||||||
1; /* clock source = PLLA */
|
1; /* clock source = PLLA */
|
||||||
|
|
||||||
CGU_MEMSTICK = (1<<8) | (1<<7) |
|
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) |
|
*(volatile int*)(CGU_BASE+0x3C) = (1<<7) |
|
||||||
(CLK_DIV(AS3525_PLLA_FREQ, 24000000) -1) | 1;
|
(CLK_DIV(AS3525_PLLA_FREQ, 24000000) -1) | 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue