diff options
author | Liming Wang <walimisdev@gmail.com> | 2012-02-22 04:56:31 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-03-26 13:22:40 +0200 |
commit | d721a3a7714147a54f400f9daeeac059e579a4a4 (patch) | |
tree | f1166e70a87b1ac1d06268b9b2ed94afedbeabde | |
parent | e758a5c4a75eb0d29201422ffc97ef7d95a88df8 (diff) | |
download | u-boot-imx-d721a3a7714147a54f400f9daeeac059e579a4a4.zip u-boot-imx-d721a3a7714147a54f400f9daeeac059e579a4a4.tar.gz u-boot-imx-d721a3a7714147a54f400f9daeeac059e579a4a4.tar.bz2 |
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 <walimisdev@gmail.com>
Acked-by: Matt.Waddel@linaro.org
-rw-r--r-- | board/armltd/vexpress/ca9x4_ct_vxp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c index da6f14d..0b36d12 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; +} |