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 04d9158..6e07fe6 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 57ffa96..2f41d88 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.
  */