summaryrefslogtreecommitdiff
path: root/board/sandbox
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-30 15:35:52 +0800
committerSimon Glass <sjg@chromium.org>2015-11-19 20:13:41 -0700
commit9961a0b6fbe199cd7b08203415a905c4c7d0a731 (patch)
treeb0237f5dba73dc69f63d4d3dca28a1f4195c3cd0 /board/sandbox
parent67521957605494a11fa5161dcc54757dc5b6b8a1 (diff)
downloadu-boot-9961a0b6fbe199cd7b08203415a905c4c7d0a731.tar.gz
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 <thomas@wytron.com.tw> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/sandbox')
-rw-r--r--board/sandbox/sandbox.c2
1 files changed, 2 insertions, 0 deletions
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)
{