summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-04-18 20:08:47 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-04-18 20:08:47 +0000
commitc2ca4bec9d104209ca21779f7cad719295eea657 (patch)
treeef2af1cf9dc73e790322ea4843aec579b9b88e8c /firmware
parent68199cc19557ddb4a4c6357510a196ee6a487846 (diff)
downloadrockbox-c2ca4bec9d104209ca21779f7cad719295eea657.tar.gz
rockbox-c2ca4bec9d104209ca21779f7cad719295eea657.tar.bz2
rockbox-c2ca4bec9d104209ca21779f7cad719295eea657.zip
AMSv1 sd: work-around for detection problem with some sd cards (delay after switching to high-speed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29746 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index 1ebe008822..4f356c349e 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -349,7 +349,7 @@ static int sd_init_card(const int drive)
/* CMD6 */
if(!send_cmd(drive, SD_SWITCH_FUNC, 0x80fffff1, MCI_NO_RESP, NULL))
return -7;
- mci_delay();
+ sleep(HZ/10);
/* go back to STBY state so we can read csd */
/* CMD7 w/rca=0: Deselect card to put it in STBY state */