Skip to contentSkip to conversation

omap: Enable GPMC clock in gpmc_init

PATCH New Olof Johansson 1 participant 1 message Jan 20, 2010

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

PATCH 1/1 omap: Enable GPMC clock in gpmc_init

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.

arch/arm/mach-omap2/gpmc.c +2 -0
index bd8cb59..3f1334f 100644
@@ -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--