]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MIPS: move au1x00 SoC code to arch/mips/mach-au1x00
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 29 Jan 2015 13:47:01 +0000 (14:47 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 30 Jan 2015 13:19:58 +0000 (14:19 +0100)
Move all au1x00 code out of arch/mips/cpu/mips32 to allow
unification of CPU code in a later patch. The reorganization
of the SoC specific header files will be done in a later patch
series.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Paul Burton <paul.burton@imgtec.com>
arch/mips/Makefile
arch/mips/cpu/mips32/Makefile
arch/mips/cpu/mips32/cpu.c
arch/mips/mach-au1x00/Makefile [moved from arch/mips/cpu/mips32/au1x00/Makefile with 100% similarity]
arch/mips/mach-au1x00/au1x00_eth.c [moved from arch/mips/cpu/mips32/au1x00/au1x00_eth.c with 98% similarity]
arch/mips/mach-au1x00/au1x00_ide.c [moved from arch/mips/cpu/mips32/au1x00/au1x00_ide.c with 100% similarity]
arch/mips/mach-au1x00/au1x00_serial.c [moved from arch/mips/cpu/mips32/au1x00/au1x00_serial.c with 100% similarity]
arch/mips/mach-au1x00/au1x00_usb_ohci.c [moved from arch/mips/cpu/mips32/au1x00/au1x00_usb_ohci.c with 100% similarity]
arch/mips/mach-au1x00/au1x00_usb_ohci.h [moved from arch/mips/cpu/mips32/au1x00/au1x00_usb_ohci.h with 100% similarity]
arch/mips/mach-au1x00/config.mk [moved from arch/mips/cpu/mips32/au1x00/config.mk with 100% similarity]

index 0a9e7e614b2061ee674a91add20888f4e9ee1e5b..ff01bfef20e861ef2155ed27d5410f16c3dea5aa 100644 (file)
@@ -8,3 +8,5 @@ head-$(CONFIG_CPU_MIPS64) := arch/mips/cpu/mips64/start.o
 libs-$(CONFIG_CPU_MIPS32) += arch/mips/cpu/mips32/
 libs-$(CONFIG_CPU_MIPS64) += arch/mips/cpu/mips64/
 libs-y += arch/mips/lib/
+
+libs-$(CONFIG_SOC_AU1X00) += arch/mips/mach-au1x00/
index 19d316ab75bae0d95551ea7aae5ebd852bfb739e..cb4db9c71b6f251f461ba10d71313e248f909e04 100644 (file)
@@ -7,5 +7,3 @@
 
 extra-y        = start.o
 obj-y  = cpu.o interrupts.o time.o
-
-obj-$(CONFIG_SOC_AU1X00) += au1x00/
index 8e1cc4e1fea24b7df24e135ff87c218ef02c9b24..07deca86f7e93f5a80f01a46cac2e780456ddaa0 100644 (file)
@@ -32,11 +32,3 @@ void write_one_tlb(int index, u32 pagemask, u32 hi, u32 low0, u32 low1)
        write_c0_index(index);
        tlb_write_indexed();
 }
-
-int cpu_eth_init(bd_t *bis)
-{
-#ifdef CONFIG_SOC_AU1X00
-       au1x00_enet_initialize(bis);
-#endif
-       return 0;
-}
similarity index 98%
rename from arch/mips/cpu/mips32/au1x00/au1x00_eth.c
rename to arch/mips/mach-au1x00/au1x00_eth.c
index 4770f563aa92e8954a3953a76372249694ea2ca6..39c5b6bc4a8fcb896b3efc7e780379ddb1d6f87d 100644 (file)
@@ -294,3 +294,9 @@ int au1x00_enet_initialize(bd_t *bis){
 
        return 1;
 }
+
+int cpu_eth_init(bd_t *bis)
+{
+       au1x00_enet_initialize(bis);
+       return 0;
+}