提交 a7f39e7c 编写于 作者: M Matthias Weisser 提交者: Albert ARIBAUD

imx: Add get_tbclk() function for imx25

Need this function for autoboot keyd
Signed-off-by: NMatthias Weisser <weisserm@arcor.de>
上级 81d668ea
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册