@@ -11,8 +11,8 @@
#include <linux/init.h>
#include <linux/module.h>
-#include <mach/hardware.h>
-#include <mach/irqs.h>
+#include <mach-sa1100/hardware.h>
+#include <mach-sa1100/irqs.h>
static int sa1100_gpio_get(struct gpio_chip *chip, unsigned offset)
{
b/drivers/input/keyboard/pxa27x_keypad.c
@@ -31,7 +31,14 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
-#include <mach/hardware.h>
+#ifdef CONFIG_ARCH_PXA
+#include <mach-pxa/hardware.h>
+#endif
+
+#ifdef CONFIG_ARCH_MMP
+#include <mach-mmp/hardware.h>
+#endif
+
#include <plat-pxa/pxa27x_keypad.h>
/*
* Keypad Controller registers
@@ -23,7 +23,7 @@
#include <linux/irq.h>
#include <linux/slab.h>
-#include <mach/dma.h>
+#include <mach-pxa/dma.h>
#include <plat-pxa/pxa3xx_nand.h>
#define CHIP_DELAY_TIMEOUT (2 * HZ/10)
@@ -19,9 +19,9 @@
#include <linux/platform_device.h>
#include <asm/mach-types.h>
-#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/hardware/scoop.h>
+#include <mach-pxa/hardware.h>
#include "soc_common.h"
@@ -16,7 +16,7 @@
#include <pcmcia/ss.h>
-#include <mach/hardware.h>
+#include <mach-sa1100/hardware.h>
#include <asm/hardware/sa1111.h>
#include <asm/irq.h>
@@ -35,11 +35,21 @@
#include <linux/bitops.h>
#include <linux/io.h>
-#include <mach/hardware.h>
-#include <mach/irqs.h>
+#ifdef CONFIG_ARCH_MMP
+#include <mach-mmp/hardware.h>
+#include <mach-mmp/irqs.h>
+#include <mach-mmp/regs-rtc.h>
+#endif
+
+#ifdef CONFIG_ARCH_PXA
+#include <mach-pxa/hardware.h>
+#include <mach-pxa/irqs.h>
+#include <mach-pxa/regs-rtc.h>
+#endif
-#if defined(CONFIG_ARCH_PXA) || defined(CONFIG_ARCH_MMP)
-#include <mach/regs-rtc.h>
+#ifdef CONFIG_ARCH_SA1100
+#include <mach-sa1100/hardware.h>
+#include <mach-sa1100/irqs.h>
#endif
#define RTC_DEF_DIVIDER (32768 - 1)
@@ -34,11 +34,15 @@
#include <linux/timex.h>
#ifdef CONFIG_ARCH_PXA
-#include <mach/regs-ost.h>
+#include <mach-pxa/regs-ost.h>
+#include <mach-pxa/reset.h>
+#include <mach-pxa/hardware.h>
#endif
-#include <mach/reset.h>
-#include <mach/hardware.h>
+#ifdef CONFIG_ARCH_SA1100
+#include <mach-sa1100/reset.h>
+#include <mach-sa1100/hardware.h>
+#endif
static unsigned long oscr_freq;
static unsigned long sa1100wdt_users;