projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ae85b
)
ColdFire: Fix compilation issue caused by a missing function
author
TsiChung Liew
<Tsi-Chung.Liew@freescale.com>
Fri, 1 Aug 2008 00:53:21 +0000
(19:53 -0500)
committer
Wolfgang Denk
<wd@denx.de>
Fri, 1 Aug 2008 10:37:45 +0000
(12:37 +0200)
Implement usec2ticks() which is used by fsl_i2c.c in
lib_m68k/time.c
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
lib_m68k/time.c
patch
|
blob
|
history
diff --git
a/lib_m68k/time.c
b/lib_m68k/time.c
index 28d371d5e68f31b7926d12f1a74e7b7a8f3e7e91..6eba784b5c12844b13826cdddfb1758ce9286c78 100644
(file)
--- 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.