summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMatthias Weisser <weisserm@arcor.de>2011-11-29 12:16:40 +0100
committerMike Frysinger <vapier@gentoo.org>2011-12-10 17:54:04 -0500
commitd99a6874f5397955e1d6cb3098ab274d0836109f (patch)
tree437afdf789a66e6bb05edacce7c4bcdfe2cd5641 /board
parent21899b10850b8ba155b16038fac5dd8d98214842 (diff)
downloadu-boot-imx-d99a6874f5397955e1d6cb3098ab274d0836109f.zip
u-boot-imx-d99a6874f5397955e1d6cb3098ab274d0836109f.tar.gz
u-boot-imx-d99a6874f5397955e1d6cb3098ab274d0836109f.tar.bz2
sandbox: Add timer simulation
Making sleep command work Signed-off-by: Matthias Weisser <weisserm@arcor.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board')
-rw-r--r--board/sandbox/sandbox/sandbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index 95a5045..f376c74 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -21,6 +21,8 @@
#include <common.h>
+#include <os.h>
+
/*
* Pointer to initial global data area
*
@@ -34,7 +36,7 @@ void flush_cache(unsigned long start, unsigned long size)
ulong get_timer(ulong base)
{
- return 0;
+ return (os_get_nsec() / 1000000) - base;
}
int timer_init(void)