diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/rk27xx/sd-rk27xx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/rk27xx/sd-rk27xx.c b/firmware/target/arm/rk27xx/sd-rk27xx.c index d6a3b11a50..a3ff344d78 100644 --- a/firmware/target/arm/rk27xx/sd-rk27xx.c +++ b/firmware/target/arm/rk27xx/sd-rk27xx.c | |||
@@ -256,8 +256,10 @@ static int sd_init_card(void) | |||
256 | if((response & 0xFFF) == 0x1AA) | 256 | if((response & 0xFFF) == 0x1AA) |
257 | sd_v2 = true; | 257 | sd_v2 = true; |
258 | 258 | ||
259 | /* timeout for initialization is 1sec, from SD Specification 2.00 */ | 259 | /* Timeout for inintialization is 2 sec. |
260 | init_timeout = current_tick + HZ; | 260 | According to SD Specification 2.00 it should be >= 1, |
261 | but it's not enough in some rare cases. */ | ||
262 | init_timeout = current_tick + 2*HZ; | ||
261 | 263 | ||
262 | do { | 264 | do { |
263 | /* this timeout is the only valid error for this loop*/ | 265 | /* this timeout is the only valid error for this loop*/ |