summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs/nomadik
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2012-03-28 02:56:30 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-28 23:53:22 +0200
commitb39643b72c89489896b1fc2fd9e230b319f2c0c3 (patch)
tree4ee83b16e1a2251d7322196080d27ba1c73a8a3a /arch/arm/cpu/arm926ejs/nomadik
parent77c3d844b0e2617dace78b39433aebe5d219187d (diff)
downloadu-boot-imx-b39643b72c89489896b1fc2fd9e230b319f2c0c3.zip
u-boot-imx-b39643b72c89489896b1fc2fd9e230b319f2c0c3.tar.gz
u-boot-imx-b39643b72c89489896b1fc2fd9e230b319f2c0c3.tar.bz2
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 <agust@denx.de> Cc: Alessandro Rubini <rubini@unipv.it> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Alessandro Rubini <rubini@unipv.it>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/nomadik')
-rw-r--r--arch/arm/cpu/arm926ejs/nomadik/timer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/nomadik/timer.c b/arch/arm/cpu/arm926ejs/nomadik/timer.c
index 1cd0e1f..bc2e4d5 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;
+}