mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
sdmcc.c: Longer delay on SD init (thanks @profi200)
This commit is contained in:
parent
1403dc8ef9
commit
d928591a80
@ -469,7 +469,7 @@ int SD_Init()
|
|||||||
|
|
||||||
// We need to send at least 74 clock pulses.
|
// We need to send at least 74 clock pulses.
|
||||||
set_target(&handleSD);
|
set_target(&handleSD);
|
||||||
wait(0x1980); // ~75-76 clocks
|
wait(2 * 128 * 74);
|
||||||
|
|
||||||
sdmmc_send_command(&handleSD,0,0);
|
sdmmc_send_command(&handleSD,0,0);
|
||||||
sdmmc_send_command(&handleSD,0x10408,0x1AA);
|
sdmmc_send_command(&handleSD,0x10408,0x1AA);
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
.global wait
|
.global wait
|
||||||
.type wait, %function
|
.type wait, %function
|
||||||
wait:
|
wait:
|
||||||
subs r0, r0, #2
|
subs r0, r0, #4
|
||||||
nop
|
bcs wait
|
||||||
bgt wait
|
|
||||||
bx lr
|
bx lr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user