]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: add get_{tbclk,ticks}
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Feb 2012 05:21:17 +0000 (00:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 12 Mar 2012 15:03:43 +0000 (11:03 -0400)
Fixes building after recent readline updates with timeouts.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/sandbox/sandbox/sandbox.c

index f376c743578e433ddc7fa63752a1c2f323447283..98830139a5c4a6a18bd1a43c58839c19b789efd8 100644 (file)
@@ -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;