]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
authorLiming Wang <walimisdev@gmail.com>
Wed, 22 Feb 2012 04:56:31 +0000 (04:56 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 26 Mar 2012 11:22:40 +0000 (13:22 +0200)
commit f31a911fe (arm, post: add missing post_time_ms for arm)
enables get_ticks and get_tbclk for all arm based boards,
arm/vexpress also needs these functions to work.

Signed-off-by: Liming Wang <walimisdev@gmail.com>
Acked-by: Matt.Waddel@linaro.org
board/armltd/vexpress/ca9x4_ct_vxp.c

index da6f14d9888302592df5956007410b1e545f74f6..0b36d1280a87ae32c939126dd3632f71981ad328 100644 (file)
@@ -226,3 +226,13 @@ void lowlevel_init(void)
 ulong get_board_rev(void){
        return readl((u32 *)SYS_ID);
 }
+
+unsigned long long get_ticks(void)
+{
+       return get_timer(0);
+}
+
+ulong get_tbclk (void)
+{
+       return (ulong)CONFIG_SYS_HZ;
+}