Skip to content
Snippets Groups Projects
Commit 274737e5 authored by Andrew Dyer's avatar Andrew Dyer Committed by Jean-Christophe PLAGNIOL-VILLARD
Browse files

i.mx change get_timer(base) to return time since base


This patch changes get_timer() for i.MX to return the time since
'base' instead of the time since the counter was at zero.

Symptom seen is flash timeout errors when erasing or programming a
sector using the common cfi flash code.

Signed-off-by: default avatarAndrew Dyer <adyer@righthandtech.com>
parent 48fed405
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ void reset_timer (void) ...@@ -60,7 +60,7 @@ void reset_timer (void)
ulong get_timer (ulong base) ulong get_timer (ulong base)
{ {
return get_timer_masked (); return get_timer_masked() - base;
} }
void set_timer (ulong t) void set_timer (ulong t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment