[U-Boot-Users] [PATCH] Fix compilation issue caused by a missing function

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Fri Aug 1 02:53:21 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

Implement usec2ticks() which is used by fsl_i2c.c in
lib_m68k/time.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
 lib_m68k/time.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib_m68k/time.c b/lib_m68k/time.c
index 28d371d..6eba784 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.
-- 
1.5.6.4





More information about the U-Boot mailing list