X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fscb9328%2Fflash.c;h=00c660a2be18db29fa5df638b5f9585f72096d0f;hb=6b9408edd3f6af6e91bcc0eebd4aedc0aca28934;hp=c6f94aebba76dfa7376023020a50c100e4f32d8c;hpb=f61f1e150c84f5b9347fca79a4bc5f2286c545d2;p=u-boot diff --git a/board/scb9328/flash.c b/board/scb9328/flash.c index c6f94aebba..00c660a2be 100644 --- a/board/scb9328/flash.c +++ b/board/scb9328/flash.c @@ -97,11 +97,12 @@ static FLASH_BUS_RET flash_status_reg (void) static int flash_ready (ulong timeout) { int ok = 1; + ulong start; - reset_timer_masked (); + start = get_timer(0); while ((flash_status_reg () & FLASH_CMD (CFI_INTEL_SR_READY)) != FLASH_CMD (CFI_INTEL_SR_READY)) { - if (get_timer_masked () > timeout && timeout != 0) { + if (get_timer(start) > timeout && timeout != 0) { ok = 0; break; }