mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
ColdFire: Fix compilation issue caused by a missing function
Implement usec2ticks() which is used by fsl_i2c.c in lib_m68k/time.c Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
This commit is contained in:
parent
01ae85b58b
commit
ac169d645f
1 changed files with 5 additions and 0 deletions
|
@ -199,6 +199,11 @@ unsigned long long get_ticks(void)
|
|||
return get_timer(0);
|
||||
}
|
||||
|
||||
unsigned long usec2ticks(unsigned long usec)
|
||||
{
|
||||
return get_timer(usec);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function is derived from PowerPC code (timebase clock frequency).
|
||||
* On M68K it returns the number of timer ticks per second.
|
||||
|
|
Loading…
Reference in a new issue