summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-19 12:11:50 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-19 12:11:50 +0000
commita53785911aeb37864eef81d3ec422645a04e4b0d (patch)
tree1e531fc5d19aa171451d1878486d2889980492ac
parent38136345f6f045cd8993c7ed593e9e77fff51a90 (diff)
downloadrockbox-a53785911aeb37864eef81d3ec422645a04e4b0d.tar.gz
rockbox-a53785911aeb37864eef81d3ec422645a04e4b0d.zip
sd-as3525: give timeout in HZ units, not in ticks
remove a TODO fixed in r26029 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26159 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index 5cffced743..2b299f182d 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -22,8 +22,6 @@
22 22
23/* Driver for the ARM PL180 SD/MMC controller inside AS3525 SoC */ 23/* Driver for the ARM PL180 SD/MMC controller inside AS3525 SoC */
24 24
25/* TODO: Find the real capacity of >2GB models (will be useful for USB) */
26
27#include "config.h" /* for HAVE_MULTIDRIVE & AMS_OF_SIZE */ 25#include "config.h" /* for HAVE_MULTIDRIVE & AMS_OF_SIZE */
28#include "fat.h" 26#include "fat.h"
29#include "thread.h" 27#include "thread.h"
@@ -575,7 +573,7 @@ bool sd_present(IF_MD_NONVOID(int drive))
575static int sd_wait_for_state(const int drive, unsigned int state) 573static int sd_wait_for_state(const int drive, unsigned int state)
576{ 574{
577 unsigned long response = 0; 575 unsigned long response = 0;
578 unsigned int timeout = current_tick + 100; /* 100 ticks timeout */ 576 unsigned int timeout = current_tick + HZ;
579 577
580 while (1) 578 while (1)
581 { 579 {