@@ -182,6 +182,7 @@ config AR7
select GPIOLIB
select VLYNQ
select HAVE_CLK
+ select HAVE_MACH_HEAD_FILES
help
Support for the Texas Instruments AR7 System-on-a-Chip
family: TNETD7100, 7200 and 7300.
@@ -2,5 +2,5 @@
# Texas Instruments AR7
#
platform-$(CONFIG_AR7) += ar7/
-cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/include/asm/mach-ar7
+cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/ar7/include
load-$(CONFIG_AR7) += 0xffffffff94100000
@@ -16,7 +16,7 @@
#include <linux/clk.h>
#include <asm/addrspace.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
#define BOOT_PLL_SOURCE_MASK 0x3
#define CPU_PLL_SOURCE_SHIFT 16
@@ -9,7 +9,7 @@
#include <linux/export.h>
#include <linux/gpio.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
#define AR7_GPIO_MAX 32
#define TITAN_GPIO_MAX 51
similarity index 100%
rename from arch/mips/include/asm/mach-ar7/ar7.h
rename to arch/mips/ar7/include/mach/ar7.h
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/cpu-feature-overrides.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-ar7/irq.h
rename to arch/mips/ar7/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>
similarity index 100%
rename from arch/mips/include/asm/mach-ar7/prom.h
rename to arch/mips/ar7/include/mach/prom.h
similarity index 100%
rename from arch/mips/include/asm/mach-ar7/spaces.h
rename to arch/mips/ar7/include/mach/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>
@@ -10,7 +10,7 @@
#include <asm/irq_cpu.h>
#include <asm/mipsregs.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
#define EXCEPT_OFFSET 0x80
#define PACE_OFFSET 0xA0
@@ -15,7 +15,7 @@
#include <asm/page.h>
#include <asm/sections.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
static int __init memsize(void)
{
@@ -24,8 +24,8 @@
#include <linux/clk.h>
#include <asm/addrspace.h>
-#include <asm/mach-ar7/ar7.h>
-#include <asm/mach-ar7/prom.h>
+#include <mach/ar7.h>
+#include <mach/prom.h>
/*****************************************************************************
* VLYNQ Bus
@@ -15,8 +15,8 @@
#include <asm/bootinfo.h>
#include <asm/setup.h>
-#include <asm/mach-ar7/ar7.h>
-#include <asm/mach-ar7/prom.h>
+#include <mach/ar7.h>
+#include <mach/prom.h>
#define MAX_ENTRY 80
@@ -9,8 +9,8 @@
#include <linux/time.h>
#include <asm/reboot.h>
-#include <asm/mach-ar7/ar7.h>
-#include <asm/mach-ar7/prom.h>
+#include <mach/ar7.h>
+#include <mach/prom.h>
static void ar7_machine_restart(char *command)
{
@@ -12,7 +12,7 @@
#include <linux/clk.h>
#include <asm/time.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
void __init plat_time_init(void)
{
@@ -29,7 +29,7 @@
#include <linux/gpio.h>
#include <linux/atomic.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
MODULE_AUTHOR("Eugene Konev <ejka@imfi.kspu.ru>");
MODULE_DESCRIPTION("TI AR7 ethernet driver (CPMAC)");
@@ -26,7 +26,7 @@
#include <linux/clk.h>
#include <asm/addrspace.h>
-#include <asm/mach-ar7/ar7.h>
+#include <mach/ar7.h>
#define LONGNAME "TI AR7 Watchdog Timer"
Remove header files from arch/mips/include/asm/mach-ar7 to arch/mips/ar7/include/mach Signed-off-by: bibo mao <maobibo@loongson.cn> --- arch/mips/Kconfig | 1 + arch/mips/ar7/Platform | 2 +- arch/mips/ar7/clock.c | 2 +- arch/mips/ar7/gpio.c | 2 +- arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/ar7.h | 0 arch/mips/ar7/include/mach/cpu-feature-overrides.h | 2 ++ arch/mips/ar7/include/mach/ioremap.h | 2 ++ arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/irq.h | 0 arch/mips/ar7/include/mach/kernel-entry-init.h | 2 ++ arch/mips/ar7/include/mach/kmalloc.h | 2 ++ arch/mips/ar7/include/mach/mangle-port.h | 2 ++ arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/prom.h | 0 arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/spaces.h | 0 arch/mips/ar7/include/mach/topology.h | 2 ++ arch/mips/ar7/include/mach/war.h | 2 ++ arch/mips/ar7/irq.c | 2 +- arch/mips/ar7/memory.c | 2 +- arch/mips/ar7/platform.c | 4 ++-- arch/mips/ar7/prom.c | 4 ++-- arch/mips/ar7/setup.c | 4 ++-- arch/mips/ar7/time.c | 2 +- drivers/net/ethernet/ti/cpmac.c | 2 +- drivers/watchdog/ar7_wdt.c | 2 +- 23 files changed, 29 insertions(+), 14 deletions(-) rename arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/ar7.h (100%) create mode 100644 arch/mips/ar7/include/mach/cpu-feature-overrides.h create mode 100644 arch/mips/ar7/include/mach/ioremap.h rename arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/irq.h (100%) create mode 100644 arch/mips/ar7/include/mach/kernel-entry-init.h create mode 100644 arch/mips/ar7/include/mach/kmalloc.h create mode 100644 arch/mips/ar7/include/mach/mangle-port.h rename arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/prom.h (100%) rename arch/mips/{include/asm/mach-ar7 => ar7/include/mach}/spaces.h (100%) create mode 100644 arch/mips/ar7/include/mach/topology.h create mode 100644 arch/mips/ar7/include/mach/war.h