Просмотр исходного кода

imx: Add get_tbclk() function for imx25

Need this function for autoboot keyd

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Matthias Weisser 14 лет назад
Родитель
Сommit
a7f39e7c22
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      arch/arm/cpu/arm926ejs/mx25/timer.c

+ 12 - 0
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;
+}