From 9961a0b6fbe199cd7b08203415a905c4c7d0a731 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Fri, 30 Oct 2015 15:35:52 +0800 Subject: sandbox: add a sandbox timer and basic test Add a sandbox timer which get time from host os and a basic test. Signed-off-by: Thomas Chou Reviewed-by: Simon Glass --- board/sandbox/sandbox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/sandbox') diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index 80eaa6334c..592f7728c0 100644 --- a/board/sandbox/sandbox.c +++ b/board/sandbox/sandbox.c @@ -26,6 +26,7 @@ void flush_cache(unsigned long start, unsigned long size) { } +#ifndef CONFIG_TIMER /* system timer offset in ms */ static unsigned long sandbox_timer_offset; @@ -38,6 +39,7 @@ unsigned long timer_read_counter(void) { return os_get_nsec() / 1000 + sandbox_timer_offset * 1000; } +#endif int dram_init(void) { -- cgit v1.2.3