Skip to contentSkip to conversation

ARM: NUC900: enable timer clock for nuc932

PATCH In review Wan ZongShun 1 participant 1 message Dec 2, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 ARM: NUC900: enable timer clock for nuc932

Dear Russell,

This patch enables timer clock support for nuc932.

---
 arch/arm/mach-w90x900/time_932.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-w90x900/time_932.c +3 -1
index c50f9c0..3f315fe 100644
@@ -38,10 +38,12 @@
 static void __init nuc900_timer_init(void)
 {
 	struct clk *ck_ext = clk_get(NULL, "ext");
+	struct clk *ck_timer = clk_get(NULL, "timer");
 	unsigned int	rate;
 
-	BUG_ON(IS_ERR(ck_ext));
+	BUG_ON(IS_ERR(ck_ext) || IS_ERR(ck_timer));
 
+	clk_enable(ck_timer);
 	rate = clk_get_rate(ck_ext);
 	clk_put(ck_ext);
 	rate = rate / (PRESCALE + 0x01);
Signature · 1 line
1.5.6.3