Parcourir la source

ARM: OMAP5: gpmc: Update gpmc_init()

GPMC module is the same as in OMAP4.
Just update the base address and irq number.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
R Sricharan il y a 13 ans
Parent
commit
1a5da219a4
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      arch/arm/mach-omap2/gpmc.c

+ 2 - 1
arch/arm/mach-omap2/gpmc.c

@@ -727,7 +727,8 @@ static int __init gpmc_init(void)
 		ck = "gpmc_fck";
 		ck = "gpmc_fck";
 		l = OMAP34XX_GPMC_BASE;
 		l = OMAP34XX_GPMC_BASE;
 		gpmc_irq = INT_34XX_GPMC_IRQ;
 		gpmc_irq = INT_34XX_GPMC_IRQ;
-	} else if (cpu_is_omap44xx()) {
+	} else if (cpu_is_omap44xx() || soc_is_omap54xx()) {
+		/* Base address and irq number are same for OMAP4/5 */
 		ck = "gpmc_ck";
 		ck = "gpmc_ck";
 		l = OMAP44XX_GPMC_BASE;
 		l = OMAP44XX_GPMC_BASE;
 		gpmc_irq = OMAP44XX_IRQ_GPMC;
 		gpmc_irq = OMAP44XX_IRQ_GPMC;