@@ -286,6 +286,7 @@ config BCM47XX
select BCM47XX_NVRAM
select BCM47XX_SPROM
select BCM47XX_SSB if !BCM47XX_BCMA
+ select HAVE_MACH_HEAD_FILES
help
Support for BCM47XX based boards
@@ -3,6 +3,6 @@
#
platform-$(CONFIG_BCM47XX) += bcm47xx/
cflags-$(CONFIG_BCM47XX) += \
- -I$(srctree)/arch/mips/include/asm/mach-bcm47xx
+ -I$(srctree)/arch/mips/bcm47xx/include
load-$(CONFIG_BCM47XX) := 0xffffffff80001000
zload-$(CONFIG_BCM47XX) += 0xffffffff80400000
@@ -2,8 +2,8 @@
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/string.h>
-#include <bcm47xx.h>
-#include <bcm47xx_board.h>
+#include <mach/bcm47xx.h>
+#include <mach/bcm47xx_board.h>
struct bcm47xx_board_type {
const enum bcm47xx_board board;
@@ -4,8 +4,8 @@
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <linux/interrupt.h>
-#include <bcm47xx_board.h>
-#include <bcm47xx.h>
+#include <mach/bcm47xx_board.h>
+#include <mach/bcm47xx.h>
/**************************************************
* Database
similarity index 100%
rename from arch/mips/include/asm/mach-bcm47xx/bcm47xx.h
rename to arch/mips/bcm47xx/include/mach/bcm47xx.h
similarity index 100%
rename from arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
rename to arch/mips/bcm47xx/include/mach/bcm47xx_board.h
similarity index 100%
rename from arch/mips/include/asm/mach-bcm47xx/cpu-feature-overrides.h
rename to arch/mips/bcm47xx/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/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>
@@ -29,7 +29,7 @@
#include <linux/irq.h>
#include <asm/setup.h>
#include <asm/irq_cpu.h>
-#include <bcm47xx.h>
+#include <mach/bcm47xx.h>
asmlinkage void plat_irq_dispatch(void)
{
@@ -2,7 +2,7 @@
#include "bcm47xx_private.h"
#include <linux/leds.h>
-#include <bcm47xx_board.h>
+#include <mach/bcm47xx_board.h>
/**************************************************
* Database
@@ -32,8 +32,8 @@
#include <linux/ssb/ssb_regs.h>
#include <linux/smp.h>
#include <asm/bootinfo.h>
-#include <bcm47xx.h>
-#include <bcm47xx_board.h>
+#include <mach/bcm47xx.h>
+#include <mach/bcm47xx_board.h>
static char bcm47xx_system_type[20] = "Broadcom BCM47XX";
@@ -13,7 +13,7 @@
#include <linux/serial.h>
#include <linux/serial_8250.h>
#include <linux/ssb/ssb.h>
-#include <bcm47xx.h>
+#include <mach/bcm47xx.h>
static struct plat_serial8250_port uart8250_data[5];
@@ -42,8 +42,8 @@
#include <asm/prom.h>
#include <asm/reboot.h>
#include <asm/time.h>
-#include <bcm47xx.h>
-#include <bcm47xx_board.h>
+#include <mach/bcm47xx.h>
+#include <mach/bcm47xx_board.h>
union bcm47xx_bus bcm47xx_bus;
EXPORT_SYMBOL(bcm47xx_bus);
@@ -25,8 +25,8 @@
#include <linux/init.h>
#include <linux/ssb/ssb.h>
#include <asm/time.h>
-#include <bcm47xx.h>
-#include <bcm47xx_board.h>
+#include <mach/bcm47xx.h>
+#include <mach/bcm47xx_board.h>
void __init plat_time_init(void)
{
@@ -2,8 +2,8 @@
#include "bcm47xx_private.h"
#include <linux/gpio.h>
-#include <bcm47xx_board.h>
-#include <bcm47xx.h>
+#include <mach/bcm47xx_board.h>
+#include <mach/bcm47xx.h>
static void __init bcm47xx_workarounds_enable_usb_power(int usb_power)
{
@@ -26,7 +26,7 @@
#include <linux/pci.h>
#include <linux/ssb/ssb.h>
#include <linux/bcma/bcma.h>
-#include <bcm47xx.h>
+#include <mach/bcm47xx.h>
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
@@ -10,7 +10,7 @@
*/
#ifdef CONFIG_BCM47XX_BCMA
-#include <asm/mach-bcm47xx/bcm47xx.h>
+#include <mach/bcm47xx.h>
#endif
#include "b43.h"
Remove header files from arch/mips/include/asm/mach-bcm47xx to arch/mips/bcm47xx/include/mach Signed-off-by: bibo mao <maobibo@loongson.cn> --- arch/mips/Kconfig | 1 + arch/mips/bcm47xx/Platform | 2 +- arch/mips/bcm47xx/board.c | 4 ++-- arch/mips/bcm47xx/buttons.c | 4 ++-- .../mips/{include/asm/mach-bcm47xx => bcm47xx/include/mach}/bcm47xx.h | 0 .../asm/mach-bcm47xx => bcm47xx/include/mach}/bcm47xx_board.h | 0 .../asm/mach-bcm47xx => bcm47xx/include/mach}/cpu-feature-overrides.h | 0 arch/mips/bcm47xx/include/mach/ioremap.h | 2 ++ arch/mips/bcm47xx/include/mach/irq.h | 2 ++ arch/mips/bcm47xx/include/mach/kernel-entry-init.h | 2 ++ arch/mips/bcm47xx/include/mach/kmalloc.h | 2 ++ arch/mips/bcm47xx/include/mach/mangle-port.h | 2 ++ arch/mips/bcm47xx/include/mach/spaces.h | 2 ++ arch/mips/bcm47xx/include/mach/topology.h | 2 ++ arch/mips/bcm47xx/include/mach/war.h | 2 ++ arch/mips/bcm47xx/irq.c | 2 +- arch/mips/bcm47xx/leds.c | 2 +- arch/mips/bcm47xx/prom.c | 4 ++-- arch/mips/bcm47xx/serial.c | 2 +- arch/mips/bcm47xx/setup.c | 4 ++-- arch/mips/bcm47xx/time.c | 4 ++-- arch/mips/bcm47xx/workarounds.c | 4 ++-- arch/mips/pci/pci-bcm47xx.c | 2 +- drivers/net/wireless/broadcom/b43/bus.c | 2 +- 24 files changed, 35 insertions(+), 18 deletions(-) rename arch/mips/{include/asm/mach-bcm47xx => bcm47xx/include/mach}/bcm47xx.h (100%) rename arch/mips/{include/asm/mach-bcm47xx => bcm47xx/include/mach}/bcm47xx_board.h (100%) rename arch/mips/{include/asm/mach-bcm47xx => bcm47xx/include/mach}/cpu-feature-overrides.h (100%) create mode 100644 arch/mips/bcm47xx/include/mach/ioremap.h create mode 100644 arch/mips/bcm47xx/include/mach/irq.h create mode 100644 arch/mips/bcm47xx/include/mach/kernel-entry-init.h create mode 100644 arch/mips/bcm47xx/include/mach/kmalloc.h create mode 100644 arch/mips/bcm47xx/include/mach/mangle-port.h create mode 100644 arch/mips/bcm47xx/include/mach/spaces.h create mode 100644 arch/mips/bcm47xx/include/mach/topology.h create mode 100644 arch/mips/bcm47xx/include/mach/war.h