omap: Enable GPMC clock in gpmc_init
authorOlof Johansson <olof@lixom.net>
Wed, 20 Jan 2010 22:39:29 +0000 (22:39 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Jan 2010 01:25:31 +0000 (17:25 -0800)
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>
arch/arm/mach-omap2/gpmc.c

index bd8cb5974726bb670da33dd078965eb49ef96471..3f1334f62e7af42b521533b7edb80260d6e3faad 100644 (file)
@@ -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 */