@@ -1386,6 +1386,7 @@ config SOC_PNX833X
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_MIPS16
select CPU_MIPSR2_IRQ_VI
+ select HAVE_MACH_HEAD_FILES
config SOC_PNX8335
bool
@@ -1,5 +1,5 @@
# NXP STB225
platform-$(CONFIG_SOC_PNX833X) += pnx833x/
-cflags-$(CONFIG_SOC_PNX833X) += -I$(srctree)/arch/mips/include/asm/mach-pnx833x
+cflags-$(CONFIG_SOC_PNX833X) += -I$(srctree)/arch/mips/pnx833x/include
load-$(CONFIG_NXP_STB220) += 0xffffffff80001000
load-$(CONFIG_NXP_STB225) += 0xffffffff80001000
@@ -13,9 +13,9 @@
#include <asm/mipsregs.h>
#include <asm/irq_cpu.h>
#include <asm/setup.h>
-#include <irq.h>
-#include <irq-mapping.h>
-#include <gpio.h>
+#include <mach/irq.h>
+#include <mach/irq-mapping.h>
+#include <mach/gpio.h>
static int mips_cpu_timer_irq;
@@ -19,9 +19,9 @@
#include <linux/serial_pnx8xxx.h>
#include <linux/mtd/platnand.h>
-#include <irq.h>
-#include <irq-mapping.h>
-#include <pnx833x.h>
+#include <mach/irq.h>
+#include <mach/irq-mapping.h>
+#include <mach/pnx833x.h>
static u64 uart_dmamask = DMA_BIT_MASK(32);
@@ -10,7 +10,7 @@
* Nikita Youshchenko <yoush@debian.org>, based on PNX8550 code.
*/
#include <linux/reboot.h>
-#include <pnx833x.h>
+#include <mach/pnx833x.h>
void pnx833x_machine_restart(char *command)
{
@@ -15,8 +15,8 @@
#include <linux/io.h>
#include <linux/pci.h>
#include <asm/reboot.h>
-#include <pnx833x.h>
-#include <gpio.h>
+#include <mach/pnx833x.h>
+#include <mach/gpio.h>
extern void pnx833x_board_setup(void);
extern void pnx833x_machine_restart(char *);
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/cpu-feature-overrides.h>
similarity index 99%
rename from arch/mips/include/asm/mach-pnx833x/gpio.h
rename to arch/mips/pnx833x/include/mach/gpio.h
@@ -17,7 +17,7 @@
- including locking between different uses
*/
-#include <asm/mach-pnx833x/pnx833x.h>
+#include <mach/pnx833x.h>
#define SET_REG_BIT(reg, bit) do { (reg |= (1 << (bit))); } while (0)
#define CLEAR_REG_BIT(reg, bit) do { (reg &= ~(1 << (bit))); } while (0)
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ioremap.h>
similarity index 99%
rename from arch/mips/include/asm/mach-pnx833x/irq-mapping.h
rename to arch/mips/pnx833x/include/mach/irq-mapping.h
@@ -24,7 +24,7 @@
* numbers 65..80 for (virtual) GPIO interrupts.
*
*/
-#include <irq.h>
+#include <mach/irq.h>
#define PNX833X_TIMER_IRQ (MIPS_CPU_IRQ_BASE + 7)
similarity index 100%
rename from arch/mips/include/asm/mach-pnx833x/irq.h
rename to arch/mips/pnx833x/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-pnx833x/pnx833x.h
rename to arch/mips/pnx833x/include/mach/pnx833x.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>
@@ -12,8 +12,8 @@
#include <linux/init.h>
#include <asm/bootinfo.h>
#include <linux/mm.h>
-#include <pnx833x.h>
-#include <gpio.h>
+#include <mach/pnx833x.h>
+#include <mach/gpio.h>
/* endianess twiddlers */
#define PNX8335_DEBUG0 0x4400
@@ -26,7 +26,7 @@
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
-#include <asm/mach-pnx833x/pnx833x.h>
+#include <mach/pnx833x.h>
#define WATCHDOG_TIMEOUT 30 /* 30 sec Maximum timeout */
#define WATCHDOG_COUNT_FREQUENCY 68000000U /* Watchdog counts at 68MHZ. */
Remove header files from arch/mips/include/asm/mach-pnx833x to arch/mips/pnx833x/include/mach Signed-off-by: bibo mao <maobibo@loongson.cn> --- arch/mips/Kconfig | 1 + arch/mips/pnx833x/Platform | 2 +- arch/mips/pnx833x/common/interrupts.c | 6 +++--- arch/mips/pnx833x/common/platform.c | 6 +++--- arch/mips/pnx833x/common/reset.c | 2 +- arch/mips/pnx833x/common/setup.c | 4 ++-- arch/mips/pnx833x/include/mach/cpu-feature-overrides.h | 2 ++ arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/gpio.h | 2 +- arch/mips/pnx833x/include/mach/ioremap.h | 2 ++ .../asm/mach-pnx833x => pnx833x/include/mach}/irq-mapping.h | 2 +- arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/irq.h | 0 arch/mips/pnx833x/include/mach/kernel-entry-init.h | 2 ++ arch/mips/pnx833x/include/mach/kmalloc.h | 2 ++ arch/mips/pnx833x/include/mach/mangle-port.h | 2 ++ arch/mips/pnx833x/include/mach/mc146818rtc.h | 2 ++ .../{include/asm/mach-pnx833x => pnx833x/include/mach}/pnx833x.h | 0 arch/mips/pnx833x/include/mach/spaces.h | 2 ++ arch/mips/pnx833x/include/mach/topology.h | 2 ++ arch/mips/pnx833x/include/mach/war.h | 2 ++ arch/mips/pnx833x/stb22x/board.c | 4 ++-- drivers/watchdog/pnx833x_wdt.c | 2 +- 21 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 arch/mips/pnx833x/include/mach/cpu-feature-overrides.h rename arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/gpio.h (99%) create mode 100644 arch/mips/pnx833x/include/mach/ioremap.h rename arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/irq-mapping.h (99%) rename arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/irq.h (100%) create mode 100644 arch/mips/pnx833x/include/mach/kernel-entry-init.h create mode 100644 arch/mips/pnx833x/include/mach/kmalloc.h create mode 100644 arch/mips/pnx833x/include/mach/mangle-port.h create mode 100644 arch/mips/pnx833x/include/mach/mc146818rtc.h rename arch/mips/{include/asm/mach-pnx833x => pnx833x/include/mach}/pnx833x.h (100%) create mode 100644 arch/mips/pnx833x/include/mach/spaces.h create mode 100644 arch/mips/pnx833x/include/mach/topology.h create mode 100644 arch/mips/pnx833x/include/mach/war.h