All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4]ARM: NUC900: enable timer clock for nuc932
@ 2009-12-02 13:55 ` Wan ZongShun
  0 siblings, 0 replies; 2+ messages in thread
From: Wan ZongShun @ 2009-12-02 13:55 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Russell,

This patch enables timer clock support for nuc932.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>

---
 arch/arm/mach-w90x900/time_932.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-w90x900/time_932.c b/arch/arm/mach-w90x900/time_932.c
index c50f9c0..3f315fe 100644
--- a/arch/arm/mach-w90x900/time_932.c
+++ b/arch/arm/mach-w90x900/time_932.c
@@ -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);
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 3/4]ARM: NUC900: enable timer clock for nuc932
@ 2009-12-02 13:55 ` Wan ZongShun
  0 siblings, 0 replies; 2+ messages in thread
From: Wan ZongShun @ 2009-12-02 13:55 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel, Russell King

Dear Russell,

This patch enables timer clock support for nuc932.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>

---
 arch/arm/mach-w90x900/time_932.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-w90x900/time_932.c b/arch/arm/mach-w90x900/time_932.c
index c50f9c0..3f315fe 100644
--- a/arch/arm/mach-w90x900/time_932.c
+++ b/arch/arm/mach-w90x900/time_932.c
@@ -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);
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-02 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 13:55 [PATCH 3/4]ARM: NUC900: enable timer clock for nuc932 Wan ZongShun
2009-12-02 13:55 ` Wan ZongShun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.