summaryrefslogtreecommitdiff
path: root/lib_m68k
diff options
context:
space:
mode:
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>2008-07-31 19:53:21 -0500
committerWolfgang Denk <wd@denx.de>2008-08-01 12:37:45 +0200
commitac169d645f5f0e0b9a232563099209e92a355d8e (patch)
treeac28ff190a00cc8069d04b6dc399199774579452 /lib_m68k
parent01ae85b58b51d2fb1fac5b93095f6042cf48ae7b (diff)
downloadu-boot-ac169d645f5f0e0b9a232563099209e92a355d8e.tar.gz
u-boot-ac169d645f5f0e0b9a232563099209e92a355d8e.tar.bz2
u-boot-ac169d645f5f0e0b9a232563099209e92a355d8e.zip
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>
Diffstat (limited to 'lib_m68k')
-rw-r--r--lib_m68k/time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_m68k/time.c b/lib_m68k/time.c
index 28d371d5e6..6eba784b5c 100644
--- a/lib_m68k/time.c
+++ b/lib_m68k/time.c
@@ -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.