@@ -21,8 +21,8 @@
#include <linux/mutex.h>
#include <linux/io.h>
-#include <mach/hardware.h>
-#include <mach/regs-clock.h>
+#include "map.h"
+#include "regs-clock.h"
#define PLL0 0x00
#define PLL1 0x01
@@ -21,7 +21,7 @@
#include <linux/platform_device.h>
#include <linux/io.h>
-#include <mach/hardware.h>
+#include "map.h"
#include "clock.h"
@@ -30,9 +30,9 @@
#include <asm/irq.h>
#include <asm/system_misc.h>
-#include <mach/hardware.h>
-#include <mach/regs-serial.h>
-#include <mach/regs-clock.h>
+#include "map.h"
+#include "regs-serial.h"
+#include "regs-clock.h"
#include "regs-ebi.h"
#include "regs-timer.h"
@@ -34,12 +34,11 @@
#include <asm/mach/irq.h>
#include <asm/mach-types.h>
-#include <mach/regs-serial.h>
#include <linux/platform_data/spi-nuc900.h>
-#include <mach/map.h>
#include <linux/platform_data/video-nuc900fb.h>
#include <linux/platform_data/keypad-w90p910.h>
+#include "map.h"
#include "cpu.h"
/*NUC900 evb norflash driver data */
@@ -22,7 +22,7 @@
#include <linux/io.h>
#include <linux/gpio/driver.h>
-#include <mach/hardware.h>
+#include "map.h"
#define GPIO_BASE (W90X900_VA_GPIO)
#define GPIO_DIR (0x04)
deleted file mode 100644
@@ -1,24 +0,0 @@
-/*
- * arch/arm/mach-w90x900/include/mach/hardware.h
- *
- * Copyright (c) 2008 Nuvoton technology corporation
- * All rights reserved.
- *
- * Wan ZongShun <mcuos.com@gmail.com>
- *
- * Based on arch/arm/mach-s3c2410/include/mach/hardware.h
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- */
-
-#ifndef __ASM_ARCH_HARDWARE_H
-#define __ASM_ARCH_HARDWARE_H
-
-#include <asm/sizes.h>
-#include <mach/map.h>
-
-#endif /* __ASM_ARCH_HARDWARE_H */
@@ -20,11 +20,12 @@
/* Defines for UART registers */
-#include <mach/regs-serial.h>
-#include <mach/map.h>
#include <linux/serial_reg.h>
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
+
+#define UART0_PA W90X900_PA_UART
+#define W90X900_PA_UART (0xB8000000)
static volatile u32 * const uart_base = (u32 *)UART0_PA;
static inline void putc(int ch)
@@ -26,9 +26,8 @@
#include <asm/irq.h>
#include <asm/mach/irq.h>
-#include <mach/hardware.h>
-#include <mach/regs-irq.h>
-
+#include "map.h"
+#include "regs-irq.h"
#include "nuc9xx.h"
struct group_irq {
@@ -17,8 +17,8 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach-types.h>
-#include <mach/map.h>
+#include "map.h"
#include "nuc910.h"
static void __init nuc910evb_map_io(void)
@@ -19,9 +19,9 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach-types.h>
-#include <mach/map.h>
#include <linux/platform_data/video-nuc900fb.h>
+#include "map.h"
#include "nuc950.h"
static void __init nuc950evb_map_io(void)
@@ -17,8 +17,8 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach-types.h>
-#include <mach/map.h>
+#include "map.h"
#include "nuc960.h"
static void __init nuc960evb_map_io(void)
similarity index 100%
rename from arch/arm/mach-w90x900/include/mach/map.h
rename to arch/arm/mach-w90x900/map.h
@@ -21,7 +21,7 @@
#include <linux/mutex.h>
#include <linux/io.h>
-#include <mach/hardware.h>
+#include "map.h"
#define REG_MFSEL (W90X900_VA_GCR + 0xC)
similarity index 100%
rename from arch/arm/mach-w90x900/include/mach/mfp.h
rename to arch/arm/mach-w90x900/mfp.h
@@ -17,7 +17,7 @@
#include <linux/platform_device.h>
#include <asm/mach/map.h>
-#include <mach/hardware.h>
+#include "map.h"
#include "cpu.h"
#include "clock.h"
@@ -17,7 +17,7 @@
#include <linux/platform_device.h>
#include <asm/mach/map.h>
-#include <mach/hardware.h>
+#include "map.h"
#include "cpu.h"
@@ -17,7 +17,7 @@
#include <linux/platform_device.h>
#include <asm/mach/map.h>
-#include <mach/hardware.h>
+#include "map.h"
#include "cpu.h"
/* define specific CPU platform device */
similarity index 96%
rename from arch/arm/mach-w90x900/include/mach/regs-clock.h
rename to arch/arm/mach-w90x900/regs-clock.h
@@ -1,6 +1,4 @@
/*
- * arch/arm/mach-w90x900/include/mach/regs-clock.h
- *
* Copyright (c) 2008 Nuvoton technology corporation.
*
* Wan ZongShun <mcuos.com@gmail.com>
similarity index 96%
rename from arch/arm/mach-w90x900/include/mach/regs-irq.h
rename to arch/arm/mach-w90x900/regs-irq.h
@@ -1,6 +1,4 @@
/*
- * arch/arm/mach-w90x900/include/mach/regs-irq.h
- *
* Copyright (c) 2008 Nuvoton technology corporation
* All rights reserved.
*
similarity index 96%
rename from arch/arm/mach-w90x900/include/mach/regs-serial.h
rename to arch/arm/mach-w90x900/regs-serial.h
@@ -1,6 +1,4 @@
/*
- * arch/arm/mach-w90x900/include/mach/regs-serial.h
- *
* Copyright (c) 2008 Nuvoton technology corporation
* All rights reserved.
*
@@ -30,9 +30,8 @@
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
-#include <mach/map.h>
+#include "map.h"
#include "regs-timer.h"
-
#include "nuc9xx.h"
#define RESETINT 0x1f
Once we enable CONFIG_ARCH_MULTIPLATFORM, we no longer reference the include/mach/ directory for header files, so they become invisible to the existing users. Since all users of the headers are now in arch/arm/mach-w90x900/, we can simply move the headers to the same place and include them using "" instead of <>. The only exception is mach/uncompress.h, which gets included by the zImage uncompress code for non-multiplatform configurations, so the header remains there for the moment, and I add the few macros it actually needs there to let it be included standalone. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/arm/mach-w90x900/clksel.c | 4 ++-- arch/arm/mach-w90x900/clock.c | 2 +- arch/arm/mach-w90x900/cpu.c | 6 +++--- arch/arm/mach-w90x900/dev.c | 3 +-- arch/arm/mach-w90x900/gpio.c | 2 +- arch/arm/mach-w90x900/include/mach/hardware.h | 24 ---------------------- arch/arm/mach-w90x900/include/mach/uncompress.h | 5 +++-- arch/arm/mach-w90x900/irq.c | 5 ++--- arch/arm/mach-w90x900/mach-nuc910evb.c | 2 +- arch/arm/mach-w90x900/mach-nuc950evb.c | 2 +- arch/arm/mach-w90x900/mach-nuc960evb.c | 2 +- arch/arm/mach-w90x900/{include/mach => }/map.h | 0 arch/arm/mach-w90x900/mfp.c | 2 +- arch/arm/mach-w90x900/{include/mach => }/mfp.h | 0 arch/arm/mach-w90x900/nuc910.c | 2 +- arch/arm/mach-w90x900/nuc950.c | 2 +- arch/arm/mach-w90x900/nuc960.c | 2 +- .../mach-w90x900/{include/mach => }/regs-clock.h | 2 -- .../arm/mach-w90x900/{include/mach => }/regs-irq.h | 2 -- .../mach-w90x900/{include/mach => }/regs-serial.h | 2 -- arch/arm/mach-w90x900/time.c | 3 +-- 21 files changed, 21 insertions(+), 53 deletions(-) delete mode 100644 arch/arm/mach-w90x900/include/mach/hardware.h rename arch/arm/mach-w90x900/{include/mach => }/map.h (100%) rename arch/arm/mach-w90x900/{include/mach => }/mfp.h (100%) rename arch/arm/mach-w90x900/{include/mach => }/regs-clock.h (96%) rename arch/arm/mach-w90x900/{include/mach => }/regs-irq.h (96%) rename arch/arm/mach-w90x900/{include/mach => }/regs-serial.h (96%) -- 2.9.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel