From b39643b72c89489896b1fc2fd9e230b319f2c0c3 Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Wed, 28 Mar 2012 02:56:30 +0000 Subject: [PATCH] nhk8815: fix build errors Fix: common/libcommon.o: In function `cread_line': /home/ag/git/u-boot/common/main.c:695: undefined reference to `get_ticks' /home/ag/git/u-boot/common/main.c:695: undefined reference to `get_tbclk' /home/ag/git/u-boot/common/main.c:698: undefined reference to `get_ticks' Signed-off-by: Anatolij Gustschin Cc: Alessandro Rubini Acked-by: Marek Vasut Acked-by: Alessandro Rubini --- arch/arm/cpu/arm926ejs/nomadik/timer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/cpu/arm926ejs/nomadik/timer.c b/arch/arm/cpu/arm926ejs/nomadik/timer.c index 1cd0e1f12a..bc2e4d506d 100644 --- a/arch/arm/cpu/arm926ejs/nomadik/timer.c +++ b/arch/arm/cpu/arm926ejs/nomadik/timer.c @@ -75,3 +75,13 @@ void __udelay(unsigned long usec) while ((signed)(end - READ_TIMER()) > 0) ; } + +unsigned long long get_ticks(void) +{ + return get_timer(0); +} + +ulong get_tbclk(void) +{ + return CONFIG_SYS_HZ; +} -- 2.25.1