Commit 1daa8c1d authored by Olof Johansson's avatar Olof Johansson Committed by Tony Lindgren

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.
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 247421fd
...@@ -534,6 +534,8 @@ void __init gpmc_init(void) ...@@ -534,6 +534,8 @@ void __init gpmc_init(void)
BUG(); BUG();
} }
clk_enable(gpmc_l3_clk);
l = gpmc_read_reg(GPMC_REVISION); l = gpmc_read_reg(GPMC_REVISION);
printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f); printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f);
/* Set smart idle mode and automatic L3 clock gating */ /* Set smart idle mode and automatic L3 clock gating */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment