From: Stefano Babic Date: Mon, 6 Feb 2012 13:02:29 +0100 Subject: [U-Boot] [PATCH 2/3] MX31: add missing get_tbclk() In-Reply-To: <1328529750-4378-1-git-send-email-sbabic@denx.de> References: <1328529750-4378-1-git-send-email-sbabic@denx.de> Message-ID: <1328529750-4378-2-git-send-email-sbabic@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Stefano Babic CC: Helmut Raiger --- arch/arm/cpu/arm1136/mx31/timer.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm1136/mx31/timer.c b/arch/arm/cpu/arm1136/mx31/timer.c index f494440..72081a8 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; -- 1.7.5.4