summaryrefslogtreecommitdiffstats
path: root/board/sandbox
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-11-08 08:40:44 -0600
committerTom Rini <trini@ti.com>2013-11-08 15:25:14 -0500
commit28c860b23fb2dd1affec909e98f25c58324e2140 (patch)
treed1b5c9c0d674d937066f762e7b6fc21fb1e6def2 /board/sandbox
parent65ba7add0d609bbd035b8d42fafdaf428ac24751 (diff)
downloadblackbird-obmc-uboot-28c860b23fb2dd1affec909e98f25c58324e2140.tar.gz
blackbird-obmc-uboot-28c860b23fb2dd1affec909e98f25c58324e2140.zip
sandbox: convert to common time functions
Convert sandbox to use common time functions. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'board/sandbox')
-rw-r--r--board/sandbox/sandbox/sandbox.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index f471cb7212..65dcce804b 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -18,19 +18,9 @@ void flush_cache(unsigned long start, unsigned long size)
{
}
-ulong get_tbclk(void)
+unsigned long timer_read_counter(void)
{
- return CONFIG_SYS_HZ;
-}
-
-unsigned long long get_ticks(void)
-{
- return get_timer(0);
-}
-
-ulong get_timer(ulong base)
-{
- return (os_get_nsec() / 1000000) - base;
+ return os_get_nsec() / 1000;
}
int timer_init(void)
OpenPOWER on IntegriCloud