From: Matthias Weisser Date: Wed, 6 Jul 2011 00:28:28 +0000 (+0000) Subject: imx: Add get_tbclk() function for imx25 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a7f39e7c222e0266a1ea7495adb7ed39076960a7;p=u-boot.git imx: Add get_tbclk() function for imx25 Need this function for autoboot keyd Signed-off-by: Matthias Weisser --- diff --git a/arch/arm/cpu/arm926ejs/mx25/timer.c b/arch/arm/cpu/arm926ejs/mx25/timer.c index 14f0c2dc73..7c8a71b9d3 100644 --- a/arch/arm/cpu/arm926ejs/mx25/timer.c +++ b/arch/arm/cpu/arm926ejs/mx25/timer.c @@ -187,3 +187,15 @@ void __udelay (unsigned long usec) while (get_ticks() < tmp) /* loop till event */ /*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) +{ + ulong tbclk; + + tbclk = CONFIG_MX25_CLK32; + return tbclk; +}