aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r--arch/arm/mach-omap2/gpmc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 39c30d9bafd9..68eead8d7bcd 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -28,8 +28,13 @@
28#include <asm/mach-types.h> 28#include <asm/mach-types.h>
29#include <plat/gpmc.h> 29#include <plat/gpmc.h>
30 30
31#include <plat/cpu.h>
31#include <plat/sdrc.h> 32#include <plat/sdrc.h>
32 33
34#include <mach/hardware.h>
35
36#include "common.h"
37
33/* GPMC register offsets */ 38/* GPMC register offsets */
34#define GPMC_REVISION 0x00 39#define GPMC_REVISION 0x00
35#define GPMC_SYSCONFIG 0x10 40#define GPMC_SYSCONFIG 0x10
@@ -846,16 +851,16 @@ static int __init gpmc_init(void)
846 l = OMAP2420_GPMC_BASE; 851 l = OMAP2420_GPMC_BASE;
847 else 852 else
848 l = OMAP34XX_GPMC_BASE; 853 l = OMAP34XX_GPMC_BASE;
849 gpmc_irq = INT_34XX_GPMC_IRQ; 854 gpmc_irq = 20 + OMAP_INTC_START;
850 } else if (cpu_is_omap34xx()) { 855 } else if (cpu_is_omap34xx()) {
851 ck = "gpmc_fck"; 856 ck = "gpmc_fck";
852 l = OMAP34XX_GPMC_BASE; 857 l = OMAP34XX_GPMC_BASE;
853 gpmc_irq = INT_34XX_GPMC_IRQ; 858 gpmc_irq = 20 + OMAP_INTC_START;
854 } else if (cpu_is_omap44xx() || soc_is_omap54xx()) { 859 } else if (cpu_is_omap44xx() || soc_is_omap54xx()) {
855 /* Base address and irq number are same for OMAP4/5 */ 860 /* Base address and irq number are same for OMAP4/5 */
856 ck = "gpmc_ck"; 861 ck = "gpmc_ck";
857 l = OMAP44XX_GPMC_BASE; 862 l = OMAP44XX_GPMC_BASE;
858 gpmc_irq = OMAP44XX_IRQ_GPMC; 863 gpmc_irq = 20 + OMAP44XX_IRQ_GIC_START;
859 } 864 }
860 865
861 if (WARN_ON(!ck)) 866 if (WARN_ON(!ck))