From 7f8d44118bda51428abc9bb655525e5f71ffc7ce Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Thu, 27 Sep 2007 00:11:24 -0600 Subject: [PATCH] gpmc: fix GPMC code to boot on 3430 The GPMC clock name in OMAP3430 is gpmc_fck. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/gpmc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5dca6d431a3..da7409e2e73 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -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); -- 2.41.1