MX31: add missing get_tbclk()
authorStefano Babic <sbabic@denx.de>
Sat, 4 Feb 2012 12:02:01 +0000 (13:02 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:23 +0000 (21:19 +0100)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Helmut Raiger <helmut.raiger@hale.at>
arch/arm/cpu/arm1136/mx31/timer.c

index f494440094e49b4f70ef2fa898ed86f2623dddf5..72081a8bde263a0ae8a4631e4e96abfa06bd0d81 100644 (file)
@@ -153,6 +153,15 @@ void __udelay(unsigned long usec)
                 /*NOP*/;
 }
 
+/*
+ * This function is derived from PowerPC code (timebase clock frequency).
+ * On ARM it returns the number of timer ticks per second.
+ */
+ulong get_tbclk(void)
+{
+       return CONFIG_MX31_CLK32;
+}
+
 void reset_cpu(ulong addr)
 {
        struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE;