@@ -657,6 +657,7 @@ config PMC_MSP
select SERIAL_8250_CONSOLE
select USB_EHCI_BIG_ENDIAN_MMIO
select USB_EHCI_BIG_ENDIAN_DESC
+ select HAVE_MACH_HEAD_FILES
help
This adds support for the PMC-Sierra family of Multi-Service
Processor System-On-A-Chips. These parts include a number
@@ -37,8 +37,8 @@
#include <asm/byteorder.h>
-#include <msp_pci.h>
-#include <msp_cic_int.h>
+#include <mach/msp_pci.h>
+#include <mach/msp_cic_int.h>
/* PCI interrupt pins */
#define IRQ4 MSP_INT_EXT4
@@ -30,11 +30,11 @@
#include <asm/mipsmtregs.h>
#endif
-#include <msp_prom.h>
-#include <msp_cic_int.h>
-#include <msp_pci.h>
-#include <msp_regs.h>
-#include <msp_regops.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_cic_int.h>
+#include <mach/msp_pci.h>
+#include <mach/msp_regs.h>
+#include <mach/msp_regops.h>
#define PCI_ACCESS_READ 0
#define PCI_ACCESS_WRITE 1
@@ -2,6 +2,6 @@
# PMC-Sierra MSP SOCs
#
platform-$(CONFIG_PMC_MSP) += pmcs-msp71xx/
-cflags-$(CONFIG_PMC_MSP) += -I$(srctree)/arch/mips/include/asm/mach-pmcs-msp71xx \
+cflags-$(CONFIG_PMC_MSP) += -I$(srctree)/arch/mips/pmcs-msp71xx/include \
-mno-branch-likely
load-$(CONFIG_PMC_MSP) += 0xffffffff80100000
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/cpu-feature-overrides.h
rename to arch/mips/pmcs-msp71xx/include/mach/cpu-feature-overrides.h
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ioremap.h>
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/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-pmcs-msp71xx/msp_cic_int.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_cic_int.h
similarity index 99%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_gpio_macros.h
@@ -29,8 +29,8 @@
#ifndef __MSP_GPIO_MACROS_H__
#define __MSP_GPIO_MACROS_H__
-#include <msp_regops.h>
-#include <msp_regs.h>
+#include <mach/msp_regops.h>
+#include <mach/msp_regs.h>
#ifdef CONFIG_PMC_MSP7120_GW
#define MSP_NUM_GPIOS 20
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_int.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_int.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_pci.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_pci.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_prom.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_prom.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_regops.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_regops.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_regs.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_regs.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_slp_int.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_slp_int.h
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/msp_usb.h
rename to arch/mips/pmcs-msp71xx/include/mach/msp_usb.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>
similarity index 100%
rename from arch/mips/include/asm/mach-pmcs-msp71xx/war.h
rename to arch/mips/pmcs-msp71xx/include/mach/war.h
@@ -28,7 +28,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
-#include <msp_regs.h>
+#include <mach/msp_regs.h>
static int __init msp_elb_setup(void)
{
@@ -29,9 +29,9 @@
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
-#include <msp_regs.h>
-#include <msp_int.h>
-#include <msp_gpio_macros.h>
+#include <mach/msp_regs.h>
+#include <mach/msp_int.h>
+#include <mach/msp_gpio_macros.h>
#define MSP_ETHERNET_GPIO0 14
@@ -29,9 +29,9 @@
#include <linux/init.h>
#include <linux/interrupt.h>
-#include <msp_int.h>
-#include <msp_regs.h>
-#include <msp_regops.h>
+#include <mach/msp_int.h>
+#include <mach/msp_regs.h>
+#include <mach/msp_regops.h>
/* For hwbutton_interrupt->initial_state */
#define HWBUTTON_HI 0x1
@@ -18,7 +18,7 @@
#include <asm/irq_cpu.h>
#include <asm/setup.h>
-#include <msp_int.h>
+#include <mach/msp_int.h>
/* SLP bases systems */
extern void msp_slp_irq_init(void);
@@ -13,8 +13,8 @@
#include <asm/mipsregs.h>
-#include <msp_cic_int.h>
-#include <msp_regs.h>
+#include <mach/msp_cic_int.h>
+#include <mach/msp_regs.h>
/*
* External API
@@ -13,8 +13,8 @@
#include <asm/mipsregs.h>
-#include <msp_cic_int.h>
-#include <msp_regs.h>
+#include <mach/msp_cic_int.h>
+#include <mach/msp_regs.h>
/*
@@ -13,8 +13,8 @@
#include <asm/mipsregs.h>
-#include <msp_slp_int.h>
-#include <msp_regs.h>
+#include <mach/msp_slp_int.h>
+#include <mach/msp_regs.h>
static inline void unmask_msp_slp_irq(struct irq_data *d)
{
@@ -26,8 +26,8 @@
#include <linux/init.h>
-#include <msp_prom.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_regs.h>
extern void msp_pci_init(void);
@@ -47,8 +47,8 @@
#include <asm-generic/sections.h>
#include <asm/page.h>
-#include <msp_prom.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_regs.h>
/* global PROM environment variables and pointers */
int prom_argc;
@@ -35,9 +35,9 @@
#include <asm/serial.h>
#include <linux/serial_8250.h>
-#include <msp_prom.h>
-#include <msp_int.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_int.h>
+#include <mach/msp_regs.h>
struct msp_uart_data {
int last_lcr;
@@ -16,11 +16,11 @@
#include <asm/smp-ops.h>
#include <asm/time.h>
-#include <msp_prom.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_regs.h>
#if defined(CONFIG_PMC_MSP7120_GW)
-#include <msp_regops.h>
+#include <mach/msp_regops.h>
#define MSP_BOARD_RESET_GPIO 9
#endif
@@ -20,9 +20,9 @@
#include <asm/mipsregs.h>
#include <asm/time.h>
-#include <msp_prom.h>
-#include <msp_int.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_int.h>
+#include <mach/msp_regs.h>
#define get_current_vpe() \
((read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) & TCBIND_CURVPE)
@@ -31,10 +31,10 @@
#include <asm/mipsregs.h>
-#include <msp_regs.h>
-#include <msp_int.h>
-#include <msp_prom.h>
-#include <msp_usb.h>
+#include <mach/msp_regs.h>
+#include <mach/msp_int.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_usb.h>
#if defined(CONFIG_USB_EHCI_HCD)
@@ -38,8 +38,8 @@
#include <asm/io.h>
-#include <msp_prom.h>
-#include <msp_regs.h>
+#include <mach/msp_prom.h>
+#include <mach/msp_regs.h>
static struct mtd_info **msp_flash;
Remove header files from arch/mips/include/asm/mach-pmcs-msp71xx to arch/mips/pmcs-msp71xx/include/mach Signed-off-by: bibo mao <maobibo@loongson.cn> --- arch/mips/Kconfig | 1 + arch/mips/pci/fixup-pmcmsp.c | 4 ++-- arch/mips/pci/ops-pmcmsp.c | 10 +++++----- arch/mips/pmcs-msp71xx/Platform | 2 +- .../include/mach}/cpu-feature-overrides.h | 0 arch/mips/pmcs-msp71xx/include/mach/ioremap.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/irq.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/kernel-entry-init.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/kmalloc.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/mangle-port.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/mc146818rtc.h | 2 ++ .../include/mach}/msp_cic_int.h | 0 .../include/mach}/msp_gpio_macros.h | 4 ++-- .../mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_int.h | 0 .../mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_pci.h | 0 .../mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_prom.h | 0 .../include/mach}/msp_regops.h | 0 .../mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_regs.h | 0 .../include/mach}/msp_slp_int.h | 0 .../mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_usb.h | 0 arch/mips/pmcs-msp71xx/include/mach/spaces.h | 2 ++ arch/mips/pmcs-msp71xx/include/mach/topology.h | 2 ++ .../asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/war.h | 0 arch/mips/pmcs-msp71xx/msp_elb.c | 2 +- arch/mips/pmcs-msp71xx/msp_eth.c | 6 +++--- arch/mips/pmcs-msp71xx/msp_hwbutton.c | 6 +++--- arch/mips/pmcs-msp71xx/msp_irq.c | 2 +- arch/mips/pmcs-msp71xx/msp_irq_cic.c | 4 ++-- arch/mips/pmcs-msp71xx/msp_irq_per.c | 4 ++-- arch/mips/pmcs-msp71xx/msp_irq_slp.c | 4 ++-- arch/mips/pmcs-msp71xx/msp_pci.c | 4 ++-- arch/mips/pmcs-msp71xx/msp_prom.c | 4 ++-- arch/mips/pmcs-msp71xx/msp_serial.c | 6 +++--- arch/mips/pmcs-msp71xx/msp_setup.c | 6 +++--- arch/mips/pmcs-msp71xx/msp_time.c | 6 +++--- arch/mips/pmcs-msp71xx/msp_usb.c | 8 ++++---- drivers/mtd/maps/pmcmsp-flash.c | 4 ++-- 37 files changed, 60 insertions(+), 43 deletions(-) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/cpu-feature-overrides.h (100%) create mode 100644 arch/mips/pmcs-msp71xx/include/mach/ioremap.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/irq.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/kernel-entry-init.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/kmalloc.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/mangle-port.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/mc146818rtc.h rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_cic_int.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_gpio_macros.h (99%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_int.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_pci.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_prom.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_regops.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_regs.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_slp_int.h (100%) rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/msp_usb.h (100%) create mode 100644 arch/mips/pmcs-msp71xx/include/mach/spaces.h create mode 100644 arch/mips/pmcs-msp71xx/include/mach/topology.h rename arch/mips/{include/asm/mach-pmcs-msp71xx => pmcs-msp71xx/include/mach}/war.h (100%)