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

From: TsiChung Liew Tsi-Chung.Liew@freescale.com
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 | 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.

In message 1217552001-6363-1-git-send-email-Tsi-Chung.Liew@freescale.com you wrote:
From: TsiChung Liew Tsi-Chung.Liew@freescale.com
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 | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Tsi-Chung Liew
-
Wolfgang Denk