nhk8815: fix build errors
authorAnatolij Gustschin <agust@denx.de>
Wed, 28 Mar 2012 02:56:30 +0000 (02:56 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 28 Mar 2012 21:53:22 +0000 (23:53 +0200)
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>
arch/arm/cpu/arm926ejs/nomadik/timer.c

index 1cd0e1f12a1a66af9c7ba2d302051e6bd29f1b59..bc2e4d506d0dcfa5cc45e40c14d6e7b2a1b9a067 100644 (file)
@@ -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;
+}