]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
gpmc: fix GPMC code to boot on 3430
authorPaul Walmsley <paul@pwsan.com>
Thu, 27 Sep 2007 06:11:24 +0000 (00:11 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Sep 2007 22:55:30 +0000 (15:55 -0700)
The GPMC clock name in OMAP3430 is gpmc_fck.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c

index 5dca6d431a30f4ab10b5d423ecc5a90cb9f90c14..da7409e2e7329d2526af115a31aa1fed0462cad3 100644 (file)
@@ -395,7 +395,11 @@ void __init gpmc_init(void)
 {
        u32 l;
 
-       gpmc_l3_clk = clk_get(NULL, "core_l3_ck");
+       if (cpu_is_omap24xx())
+               gpmc_l3_clk = clk_get(NULL, "core_l3_ck");
+       else if (cpu_is_omap34xx())
+               gpmc_l3_clk = clk_get(NULL, "gpmc_fck");
+
        BUG_ON(IS_ERR(gpmc_l3_clk));
 
        l = gpmc_read_reg(GPMC_REVISION);