Re: [U-Boot] [PATCH 1/5] imx: Add get_tbclk() function for imx25

2011-07-03 Thread Matthias Weißer
Hi Stefano Am 30.06.2011 17:38, schrieb Stefano Babic: On 06/30/2011 11:57 AM, Matthias Weisser wrote: Need this function for autoboot keyd Hi Matthias, +/* + * This function is derived from PowerPC code (timebase clock frequency). + * On ARM it returns the number of timer ticks per

[U-Boot] [PATCH 1/5] imx: Add get_tbclk() function for imx25

2011-06-30 Thread Matthias Weisser
Need this function for autoboot keyd Signed-off-by: Matthias Weisser weiss...@arcor.de --- arch/arm/cpu/arm926ejs/mx25/timer.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mx25/timer.c b/arch/arm/cpu/arm926ejs/mx25/timer.c index

Re: [U-Boot] [PATCH 1/5] imx: Add get_tbclk() function for imx25

2011-06-30 Thread Stefano Babic
On 06/30/2011 11:57 AM, Matthias Weisser wrote: Need this function for autoboot keyd Hi Matthias, +/* + * 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;