Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
[firefly-linux-kernel-4.4.55.git] / include / asm-arm / arch-integrator / platform.h
index bd364f5a99bcc221f8e55bcb8f582737f977accc..96ad3d2a66d1ead1ce639fb47569e642ebbb6050 100644 (file)
 #define INTEGRATOR_DBG_SWITCH           (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_SWITCH_OFFSET)
 
 
+#if defined(CONFIG_ARCH_INTEGRATOR_AP)
 #define INTEGRATOR_GPIO_BASE            0x1B000000      /*  GPIO */
+#elif defined(CONFIG_ARCH_INTEGRATOR_CP)
+#define INTEGRATOR_GPIO_BASE            0xC9000000      /*  GPIO */
+#endif
 
 /* ------------------------------------------------------------------------
  *  KMI keyboard/mouse definitions