summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2012-03-17 21:46:33 +0100
committerWolfgang Denk <wd@denx.de>2012-03-17 21:46:33 +0100
commit6ae38b8c583c61f00c2fe9904cafa81932c7faaf (patch)
tree5a600d4098039983b97b5ba6ff9edf559cb805d5 /board
parentdf25d49959da75cfaa1e4708669ef550d0000ce6 (diff)
parent9d72e67b79a454dcd6847bcd80c9929e0ec9054d (diff)
downloadu-boot-imx-6ae38b8c583c61f00c2fe9904cafa81932c7faaf.zip
u-boot-imx-6ae38b8c583c61f00c2fe9904cafa81932c7faaf.tar.gz
u-boot-imx-6ae38b8c583c61f00c2fe9904cafa81932c7faaf.tar.bz2
Merge branch 'sandbox' of git://git.denx.de/u-boot-blackfin
* 'sandbox' of git://git.denx.de/u-boot-blackfin: sandbox: mark os_exit as noreturn sandbox: add getopt support sandbox: allow processing before main loop sandbox: add concept of sandbox state sandbox: disable fortification sandbox: u-boot.lds: tweak style sandbox: add get_{tbclk,ticks} sandbox: enable GPIO driver sandbox: gpio: add basic driver for simulating GPIOs sandbox: add flags for open() call sandbox: config: enable fdt and snprintf() options sandbox: fdt: add support for CONFIG_OF_CONTROL sandbox: add lseek helper sandbox: add ifdef protection to os.h sandbox: add required header to os.c sandbox: sort header files in os.c
Diffstat (limited to 'board')
-rw-r--r--board/sandbox/sandbox/sandbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index f376c74..9883013 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -34,6 +34,16 @@ void flush_cache(unsigned long start, unsigned long size)
{
}
+ulong get_tbclk(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;