summaryrefslogtreecommitdiff
path: root/board/scb9328/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/scb9328/flash.c')
-rw-r--r--board/scb9328/flash.c5
1 files changed, 3 insertions, 2 deletions
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;
}