mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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: Andrew Dyer <adyer@righthandtech.com>
This commit is contained in:
parent
48fed40575
commit
274737e5eb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue