summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-03-21 20:41:53 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-03-21 20:41:53 +0000
commit6bf0f653884948ba7952c1703159bf406b4d91a9 (patch)
tree463b4d112bec5cf81d6f1245a5f2e55b63dd6538 /firmware
parent4823b2b1c0b40a3b7068a236bbd8cdabb78f4ff1 (diff)
downloadrockbox-6bf0f653884948ba7952c1703159bf406b4d91a9.tar.gz
rockbox-6bf0f653884948ba7952c1703159bf406b4d91a9.tar.bz2
rockbox-6bf0f653884948ba7952c1703159bf406b4d91a9.zip
AMSv2 SD: use a sleep instead of a udelay for 100 ms delay
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29627 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index b0808ca1d3..6e1e2f480b 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -564,7 +564,7 @@ static int sd_init_card(const int drive)
problems with some SD cards (particularly 16 GB and bigger cards).
Preferably we should handle this properly instead of using a delay,
see also FS#11870. */
- udelay(100000);
+ sleep(HZ/10);
/* We need to go back to STBY state now so we can read csd */
/* CMD7 w/rca=0: Deselect card to put it in STBY state */