From 60ebcffbf1e2a5def29398a9400b423cb1e00976 Mon Sep 17 00:00:00 2001 From: Stefano Babic Date: Sat, 4 Feb 2012 13:02:01 +0100 Subject: [PATCH] MX31: add missing get_tbclk() Signed-off-by: Stefano Babic CC: Helmut Raiger --- arch/arm/cpu/arm1136/mx31/timer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/cpu/arm1136/mx31/timer.c b/arch/arm/cpu/arm1136/mx31/timer.c index f494440094..72081a8bde 100644 --- a/arch/arm/cpu/arm1136/mx31/timer.c +++ b/arch/arm/cpu/arm1136/mx31/timer.c @@ -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; -- 2.39.5