Skip to content

Commit

Permalink
omap: Enable GPMC clock in gpmc_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson authored and Tony Lindgren committed Jan 21, 2010
1 parent 247421f commit 1daa8c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1daa8c1

Please sign in to comment.