MIPS: refactor machine setup
Subsystems (2)
cover MIPS: refactor machine setup
Refactor machine setup like it is done on ARM. While on it, also support "include <mach/file.h" for machine specific header files. Also move au1x00 specific header files to new location.
Daniel Schwierzeck (2):
MIPS: Kconfig: refactor machine setup
MIPS: au1x00: move SoC header files to
arch/mips/mach-au1x00/include/mach/
arch/mips/Makefile | 7 ++++++-
arch/mips/mach-au1x00/au1x00_eth.c | 2 +-
arch/mips/mach-au1x00/au1x00_serial.c | 2 +-
arch/mips/mach-au1x00/au1x00_usb_ohci.c | 2 +-
arch/mips/{include/asm => mach-au1x00/include/mach}/au1x00.h | 0
board/dbau1x00/dbau1x00.c | 2 +-
board/dbau1x00/lowlevel_init.S | 2 +-
board/pb1x00/lowlevel_init.S | 2 +-
board/pb1x00/pb1x00.c | 2 +-
9 files changed, 13 insertions(+), 8 deletions(-)
rename arch/mips/{include/asm => mach-au1x00/include/mach}/au1x00.h (100%)Signature · 1 line
2.5.0
PATCH 1/2 MIPS: Kconfig: refactor machine setup
Refactor machine setup like it is done on ARM. While on it, also support "include <mach/file.h" for machine specific header files.
Signed-off-by Daniel Schwierzeck <[email protected]>
---
arch/mips/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/mips/Makefile +6 -1
@@ -7,4 +7,9 @@ head-y := arch/mips/cpu/start.o libs-y += arch/mips/cpu/ libs-y += arch/mips/lib/ -libs-$(CONFIG_SOC_AU1X00) += arch/mips/mach-au1x00/ +machine-$(CONFIG_SOC_AU1X00) += au1x00 + +machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y)) +libs-y += $(machdirs) + +PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
Signature · 1 line
2.5.0
PATCH 2/2 MIPS: au1x00: move SoC header files to arch/mips/mach-au1x00/include/mach/
In reply to Daniel SchwierzeckSigned-off-by Daniel Schwierzeck <[email protected]>
---
arch/mips/mach-au1x00/au1x00_eth.c | 2 +-
arch/mips/mach-au1x00/au1x00_serial.c | 2 +-
arch/mips/mach-au1x00/au1x00_usb_ohci.c | 2 +-
arch/mips/{include/asm => mach-au1x00/include/mach}/au1x00.h | 0
board/dbau1x00/dbau1x00.c | 2 +-
board/dbau1x00/lowlevel_init.S | 2 +-
board/pb1x00/lowlevel_init.S | 2 +-
board/pb1x00/pb1x00.c | 2 +-
8 files changed, 7 insertions(+), 7 deletions(-)
rename arch/mips/{include/asm => mach-au1x00/include/mach}/au1x00.h (100%)arch/mips/mach-au1x00/au1x00_eth.c +1 -1
@@ -43,7 +43,7 @@#include <net.h> #include <command.h> #include <asm/io.h> -#include <asm/au1x00.h> +#include <mach/au1x00.h> #if defined(CONFIG_CMD_MII )#include <miiphy.h>
arch/mips/mach-au1x00/au1x00_serial.c +1 -1
@@ -11,7 +11,7 @@#include <config.h> #include <common.h> -#include <asm/au1x00.h> +#include <mach/au1x00.h> #include <serial.h> #include <linux/compiler.h>
arch/mips/mach-au1x00/au1x00_usb_ohci.c +1 -1
@@ -23,7 +23,7 @@#include <common.h> #include <malloc.h> #include <asm/io.h> -#include <asm/au1x00.h> +#include <mach/au1x00.h> #include <usb.h> #include "au1x00_usb_ohci.h"
arch/mips/mach-au1x00/include/mach/au1x00.h renamed from arch/mips/include/asm/au1x00.h +0 -0
board/dbau1x00/dbau1x00.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <command.h> -#include <asm/au1x00.h> +#include <mach/au1x00.h> #include <asm/mipsregs.h> #include <asm/io.h>
board/dbau1x00/lowlevel_init.S +1 -1
@@ -1,8 +1,8 @@ /* Memory sub-system initialization code */ #include <config.h> +#include <mach/au1x00.h> #include <asm/regdef.h> -#include <asm/au1x00.h> #include <asm/mipsregs.h> #define AU1500_SYS_ADDR 0xB1900000
board/pb1x00/lowlevel_init.S +1 -1
@@ -1,8 +1,8 @@ /* Memory sub-system initialization code */ #include <config.h> +#include <mach/au1x00.h> #include <asm/regdef.h> -#include <asm/au1x00.h> #include <asm/mipsregs.h> #define AU1500_SYS_ADDR 0xB1900000
board/pb1x00/pb1x00.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <command.h> -#include <asm/au1x00.h> +#include <mach/au1x00.h> #include <asm/mipsregs.h> #include <asm/io.h>
Signature · 1 line
2.5.0