]> git.sur5r.net Git - u-boot/commitdiff
leon: implement missing get_tbclk()
authorDaniel Hellstrom <daniel@gaisler.com>
Thu, 8 May 2014 16:52:37 +0000 (18:52 +0200)
committerDaniel Hellstrom <daniel@gaisler.com>
Thu, 8 May 2014 19:05:39 +0000 (21:05 +0200)
Without this patch SPARC/LEON does not build.

Reported-by: Tom Rini <trini@ti.com>
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
arch/sparc/cpu/leon2/cpu_init.c
arch/sparc/cpu/leon3/cpu_init.c

index 04d9158575fc9377083e041b4cf7318bb224c88b..6e07fe6bb40e6f086bf1fbf16ff934d1c392bafd 100644 (file)
@@ -110,6 +110,11 @@ int timer_interrupt_init_cpu(void)
        return LEON2_TIMER1_IRQNO;
 }
 
+ulong get_tbclk(void)
+{
+       return TIMER_BASE_CLK;
+}
+
 /*
  * This function is intended for SHORT delays only.
  */
index 57ffa967366bcea4adbf8e1d793f69c2f93184e4..2f41d8847bdc2749901a91afe7415a7e6f0d0893 100644 (file)
@@ -222,6 +222,11 @@ int timer_interrupt_init_cpu(void)
        return gptimer_irq;
 }
 
+ulong get_tbclk(void)
+{
+       return TIMER_BASE_CLK;
+}
+
 /*
  * This function is intended for SHORT delays only.
  */