All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap: Enable GPMC clock in gpmc_init
@ 2010-01-20 22:39 Olof Johansson
  2010-01-21  1:24 ` Tony Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Olof Johansson @ 2010-01-20 22:39 UTC (permalink / raw)
  To: tony; +Cc: linux-omap

Don't assume that gpmc_l3_clk is on, enable it before touching
configuration registers.

Signed-off-by: Olof Johansson <olof@lixom.net>


diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index e86f5ca..dea72f3 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -534,6 +534,8 @@ void __init gpmc_init(void)
 		BUG();
 	}
 
+	clk_enable(gpmc_l3_clk);
+
 	l = gpmc_read_reg(GPMC_REVISION);
 	printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f);
 	/* Set smart idle mode and automatic L3 clock gating */

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] omap: Enable GPMC clock in gpmc_init
@ 2010-01-20 22:39 Olof Johansson
  0 siblings, 0 replies; 6+ messages in thread
From: Olof Johansson @ 2010-01-20 22:39 UTC (permalink / raw)
  To: linux-arm-kernel

Don't assume that gpmc_l3_clk is on, enable it before touching
configuration registers.

Note that the current code assumes that this clock is always
enabled. We are already setting smart idle and L3 autogating
for GPMC clock in gpmc_init.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index bd8cb59..3f1334f 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -534,6 +534,8 @@ void __init gpmc_init(void)
 		BUG();
 	}
 
+	clk_enable(gpmc_l3_clk);
+
 	l = gpmc_read_reg(GPMC_REVISION);
 	printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f);
 	/* Set smart idle mode and automatic L3 clock gating */

--MfFXiAuoTsnnDAfZ--

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

end of thread, other threads:[~2010-01-21  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20 22:39 [PATCH] omap: Enable GPMC clock in gpmc_init Olof Johansson
2010-01-21  1:24 ` Tony Lindgren
2010-01-21  1:25 ` [APPLIED] " Tony Lindgren
2010-01-21  1:32 ` Paul Walmsley
2010-01-21  1:32   ` Paul Walmsley
  -- strict thread matches above, loose matches on Subject: below --
2010-01-20 22:39 Olof Johansson

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.