imx: Add get_tbclk() function for imx25
Need this function for autoboot keyd Signed-off-by: Matthias Weisser <weisserm@arcor.de>
This commit is contained in:
parent
81d668ea90
commit
a7f39e7c22
|
@ -187,3 +187,15 @@ void __udelay (unsigned long usec)
|
||||||
while (get_ticks() < tmp) /* loop till event */
|
while (get_ticks() < tmp) /* loop till event */
|
||||||
/*NOP*/;
|
/*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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue