[U-Boot] [PATCH] sandbox: add get_{tbclk,ticks}

Mike Frysinger vapier at gentoo.org
Tue Feb 21 06:22:26 CET 2012


Fixes building after recent readline updates with timeouts.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 board/sandbox/sandbox/sandbox.c |   10 ++++++++++
 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;
-- 
1.7.8.4



More information about the U-Boot mailing list