Commit 4148b3d0dd62c71c13545d3c5374d015c23b544b

Authored by Daniel Hellstrom
1 parent 1c1c7506de

leon: implement missing get_tbclk()

Without this patch SPARC/LEON does not build.

Reported-by: Tom Rini <trini@ti.com>
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>

Showing 2 changed files with 10 additions and 0 deletions Side-by-side Diff

arch/sparc/cpu/leon2/cpu_init.c
... ... @@ -110,6 +110,11 @@
110 110 return LEON2_TIMER1_IRQNO;
111 111 }
112 112  
  113 +ulong get_tbclk(void)
  114 +{
  115 + return TIMER_BASE_CLK;
  116 +}
  117 +
113 118 /*
114 119 * This function is intended for SHORT delays only.
115 120 */
arch/sparc/cpu/leon3/cpu_init.c
... ... @@ -222,6 +222,11 @@
222 222 return gptimer_irq;
223 223 }
224 224  
  225 +ulong get_tbclk(void)
  226 +{
  227 + return TIMER_BASE_CLK;
  228 +}
  229 +
225 230 /*
226 231 * This function is intended for SHORT delays only.
227 232 */