@@ -682,6 +682,7 @@ config RALINK
select CLKDEV_LOOKUP
select ARCH_HAS_RESET_CONTROLLER
select RESET_CONTROLLER
+ select HAVE_MACH_HEAD_FILES
config SGI_IP22
bool "SGI IP22 (Indy/Indigo2)"
@@ -18,8 +18,8 @@
#include <linux/reset.h>
#include <linux/platform_device.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/mt7620.h>
+#include <mach/ralink_regs.h>
+#include <mach/mt7620.h>
#define RALINK_PCI_IO_MAP_BASE 0x10160000
#define RALINK_PCI_MEMORY_BASE 0x0
@@ -18,8 +18,8 @@
#include <linux/of_pci.h>
#include <linux/platform_device.h>
-#include <asm/mach-ralink/rt3883.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/rt3883.h>
+#include <mach/ralink_regs.h>
#define RT3883_MEMORY_BASE 0x00000000
#define RT3883_MEMORY_SIZE 0x02000000
@@ -2,33 +2,28 @@
# Ralink SoC common stuff
#
core-$(CONFIG_RALINK) += arch/mips/ralink/
-cflags-$(CONFIG_RALINK) += -I$(srctree)/arch/mips/include/asm/mach-ralink
+cflags-$(CONFIG_RALINK) += -I$(srctree)/arch/mips/ralink/include
#
# Ralink RT288x
#
load-$(CONFIG_SOC_RT288X) += 0xffffffff88000000
-cflags-$(CONFIG_SOC_RT288X) += -I$(srctree)/arch/mips/include/asm/mach-ralink/rt288x
#
# Ralink RT305x
#
load-$(CONFIG_SOC_RT305X) += 0xffffffff80000000
-cflags-$(CONFIG_SOC_RT305X) += -I$(srctree)/arch/mips/include/asm/mach-ralink/rt305x
#
# Ralink RT3883
#
load-$(CONFIG_SOC_RT3883) += 0xffffffff80000000
-cflags-$(CONFIG_SOC_RT3883) += -I$(srctree)/arch/mips/include/asm/mach-ralink/rt3883
#
# Ralink MT7620
#
load-$(CONFIG_SOC_MT7620) += 0xffffffff80000000
-cflags-$(CONFIG_SOC_MT7620) += -I$(srctree)/arch/mips/include/asm/mach-ralink/mt7620
# Ralink MT7621
#
load-$(CONFIG_SOC_MT7621) += 0xffffffff80001000
-cflags-$(CONFIG_SOC_MT7621) += -I$(srctree)/arch/mips/include/asm/mach-ralink/mt7621
@@ -16,7 +16,7 @@
#include <linux/of_irq.h>
#include <linux/of_address.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/ralink_regs.h>
#define SYSTICK_FREQ (50 * 1000)
@@ -8,7 +8,7 @@
#include <linux/of_platform.h>
#include <linux/of_irq.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/ralink_regs.h>
#define REG_ILL_ACC_ADDR 0x10
#define REG_ILL_ACC_TYPE 0x14
new file mode 100644
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifdef CONFIG_SOC_RT288X
+#include <mach/rt288x/cpu-feature-overrides.h>
+#elif defined(CONFIG_SOC_RT305X)
+#include <mach/rt305x/cpu-feature-overrides.h>
+#elif defined(CONFIG_SOC_RT3883)
+#include <mach/rt3883/cpu-feature-overrides.h>
+#elif defined(CONFIG_SOC_MT7620)
+#include <mach/mt7620/cpu-feature-overrides.h>
+#elif defined(CONFIG_SOC_MT7621)
+#include <mach/mt7621/cpu-feature-overrides.h>
+#else
+#include <asm/mach-generic/cpu-feature-overrides.h>
+#endif
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ide.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ioremap.h>
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/irq.h
rename to arch/mips/ralink/include/mach/irq.h
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kernel-entry-init.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kmalloc.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/mangle-port.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/mc146818rtc.h>
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/mt7620.h
rename to arch/mips/ralink/include/mach/mt7620.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/mt7620/cpu-feature-overrides.h
rename to arch/mips/ralink/include/mach/mt7620/cpu-feature-overrides.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/mt7621.h
rename to arch/mips/ralink/include/mach/mt7621.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/mt7621/cpu-feature-overrides.h
rename to arch/mips/ralink/include/mach/mt7621/cpu-feature-overrides.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/pinmux.h
rename to arch/mips/ralink/include/mach/pinmux.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/ralink_regs.h
rename to arch/mips/ralink/include/mach/ralink_regs.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt288x.h
rename to arch/mips/ralink/include/mach/rt288x.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt288x/cpu-feature-overrides.h
rename to arch/mips/ralink/include/mach/rt288x/cpu-feature-overrides.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt305x.h
rename to arch/mips/ralink/include/mach/rt305x.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt305x/cpu-feature-overrides.h
rename to arch/mips/ralink/include/mach/rt305x/cpu-feature-overrides.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt3883.h
rename to arch/mips/ralink/include/mach/rt3883.h
similarity index 100%
rename from arch/mips/include/asm/mach-ralink/rt3883/cpu-feature-overrides.h
rename to arch/mips/ralink/include/mach/rt3883/cpu-feature-overrides.h
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/spaces.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/topology.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/war.h>
@@ -13,9 +13,9 @@
#include <linux/bug.h>
#include <asm/mipsregs.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/mt7620.h>
-#include <asm/mach-ralink/pinmux.h>
+#include <mach/ralink_regs.h>
+#include <mach/mt7620.h>
+#include <mach/pinmux.h>
#include "common.h"
@@ -13,8 +13,8 @@
#include <asm/mipsregs.h>
#include <asm/smp-ops.h>
#include <asm/mips-cps.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/mt7621.h>
+#include <mach/ralink_regs.h>
+#include <mach/mt7621.h>
#include <pinmux.h>
@@ -13,7 +13,7 @@
#include <asm/bootinfo.h>
#include <asm/addrspace.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/ralink_regs.h>
#include "common.h"
@@ -14,7 +14,7 @@
#include <asm/reboot.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/ralink_regs.h>
/* Reset Control */
#define SYSC_REG_RESET_CTRL 0x034
@@ -12,9 +12,9 @@
#include <linux/init.h>
#include <asm/mipsregs.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/rt288x.h>
-#include <asm/mach-ralink/pinmux.h>
+#include <mach/ralink_regs.h>
+#include <mach/rt288x.h>
+#include <mach/pinmux.h>
#include "common.h"
@@ -14,9 +14,9 @@
#include <asm/io.h>
#include <asm/mipsregs.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/rt305x.h>
-#include <asm/mach-ralink/pinmux.h>
+#include <mach/ralink_regs.h>
+#include <mach/rt305x.h>
+#include <mach/pinmux.h>
#include "common.h"
@@ -12,9 +12,9 @@
#include <linux/init.h>
#include <asm/mipsregs.h>
-#include <asm/mach-ralink/ralink_regs.h>
-#include <asm/mach-ralink/rt3883.h>
-#include <asm/mach-ralink/pinmux.h>
+#include <mach/ralink_regs.h>
+#include <mach/rt3883.h>
+#include <mach/pinmux.h>
#include "common.h"
@@ -12,7 +12,7 @@
#include <linux/of_gpio.h>
#include <linux/clk.h>
-#include <asm/mach-ralink/ralink_regs.h>
+#include <mach/ralink_regs.h>
#define TIMER_REG_TMRSTAT 0x00
#define TIMER_REG_TMR0LOAD 0x10
Remove header files from arch/mips/include/asm/mach-ralink to arch/mips/ralink/include/mach Signed-off-by: bibo mao <maobibo@loongson.cn> --- arch/mips/Kconfig | 1 + arch/mips/pci/pci-mt7620.c | 4 ++-- arch/mips/pci/pci-rt3883.c | 4 ++-- arch/mips/ralink/Platform | 7 +------ arch/mips/ralink/cevt-rt3352.c | 2 +- arch/mips/ralink/ill_acc.c | 2 +- arch/mips/ralink/include/mach/cpu-feature-overrides.h | 14 ++++++++++++++ arch/mips/ralink/include/mach/ide.h | 2 ++ arch/mips/ralink/include/mach/ioremap.h | 2 ++ .../{include/asm/mach-ralink => ralink/include/mach}/irq.h | 0 arch/mips/ralink/include/mach/kernel-entry-init.h | 2 ++ arch/mips/ralink/include/mach/kmalloc.h | 2 ++ arch/mips/ralink/include/mach/mangle-port.h | 2 ++ arch/mips/ralink/include/mach/mc146818rtc.h | 2 ++ .../asm/mach-ralink => ralink/include/mach}/mt7620.h | 0 .../include/mach}/mt7620/cpu-feature-overrides.h | 0 .../asm/mach-ralink => ralink/include/mach}/mt7621.h | 0 .../include/mach}/mt7621/cpu-feature-overrides.h | 0 .../asm/mach-ralink => ralink/include/mach}/pinmux.h | 0 .../asm/mach-ralink => ralink/include/mach}/ralink_regs.h | 0 .../asm/mach-ralink => ralink/include/mach}/rt288x.h | 0 .../include/mach}/rt288x/cpu-feature-overrides.h | 0 .../asm/mach-ralink => ralink/include/mach}/rt305x.h | 0 .../include/mach}/rt305x/cpu-feature-overrides.h | 0 .../asm/mach-ralink => ralink/include/mach}/rt3883.h | 0 .../include/mach}/rt3883/cpu-feature-overrides.h | 0 arch/mips/ralink/include/mach/spaces.h | 2 ++ arch/mips/ralink/include/mach/topology.h | 2 ++ arch/mips/ralink/include/mach/war.h | 2 ++ arch/mips/ralink/mt7620.c | 6 +++--- arch/mips/ralink/mt7621.c | 4 ++-- arch/mips/ralink/prom.c | 2 +- arch/mips/ralink/reset.c | 2 +- arch/mips/ralink/rt288x.c | 6 +++--- arch/mips/ralink/rt305x.c | 6 +++--- arch/mips/ralink/rt3883.c | 6 +++--- arch/mips/ralink/timer.c | 2 +- 37 files changed, 57 insertions(+), 29 deletions(-) create mode 100644 arch/mips/ralink/include/mach/cpu-feature-overrides.h create mode 100644 arch/mips/ralink/include/mach/ide.h create mode 100644 arch/mips/ralink/include/mach/ioremap.h rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/irq.h (100%) create mode 100644 arch/mips/ralink/include/mach/kernel-entry-init.h create mode 100644 arch/mips/ralink/include/mach/kmalloc.h create mode 100644 arch/mips/ralink/include/mach/mangle-port.h create mode 100644 arch/mips/ralink/include/mach/mc146818rtc.h rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/mt7620.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/mt7620/cpu-feature-overrides.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/mt7621.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/mt7621/cpu-feature-overrides.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/pinmux.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/ralink_regs.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt288x.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt288x/cpu-feature-overrides.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt305x.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt305x/cpu-feature-overrides.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt3883.h (100%) rename arch/mips/{include/asm/mach-ralink => ralink/include/mach}/rt3883/cpu-feature-overrides.h (100%) create mode 100644 arch/mips/ralink/include/mach/spaces.h create mode 100644 arch/mips/ralink/include/mach/topology.h create mode 100644 arch/mips/ralink/include/mach/war.h