From: Liming Wang Date: Wed, 22 Feb 2012 04:56:31 +0000 (+0000) Subject: ARMV7/Vexpress: add missing get_ticks() and get_tbclk() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d721a3a7714147a54f400f9daeeac059e579a4a4;p=project%2Fbcm63xx%2Fu-boot.git ARMV7/Vexpress: add missing get_ticks() and get_tbclk() 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 Acked-by: Matt.Waddel@linaro.org --- diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c index da6f14d988..0b36d1280a 100644 --- a/board/armltd/vexpress/ca9x4_ct_vxp.c +++ b/board/armltd/vexpress/ca9x4_ct_vxp.c @@ -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; +}