Skip to contentSkip to conversation

MIPS: refactor machine setup

PATCH New Daniel Schwierzeck 1 participant 3 messages Dec 21, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

---

 arch/mips/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/mips/Makefile +6 -1
index 43f0f5c..6a9f798 100644
@@ -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
#2 lore raw

PATCH 2/2 MIPS: au1x00: move SoC header files to arch/mips/mach-au1x00/include/mach/

In reply to Daniel Schwierzeck

---

 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
index d6ebe07..3e8e8c1 100644
@@ -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
index 0463508..4784504 100644
@@ -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
index 74bdb77..42484e5 100644
@@ -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
similarity index 100%
rename from arch/mips/include/asm/au1x00.h
rename to arch/mips/mach-au1x00/include/mach/au1x00.h
board/dbau1x00/dbau1x00.c +1 -1
index bd20f6e..75e6f0e 100644
@@ -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
index 842fb76..409f8ee 100644
@@ -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
index b145e43..98d9536 100644
@@ -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
index 34814c4..eb92914 100644
@@ -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