From 58e75e86cf9af1130b3c628d924e6df0bc72832f Mon Sep 17 00:00:00 2001
From: Manuel Lauss <mano@roarinelk.homelinux.net>
Date: Sun, 21 Dec 2008 09:26:14 +0100
Subject: [PATCH] MIPS: Alchemy: Move development board code to common
 subdirectory

This should ease sharing of common devboard code.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
 arch/mips/Makefile                            | 24 +++++++++----------
 arch/mips/alchemy/devboards/Makefile          | 16 +++++++++++++
 .../alchemy/{ => devboards}/db1x00/Makefile   |  0
 .../{ => devboards}/db1x00/board_setup.c      |  0
 .../alchemy/{ => devboards}/db1x00/init.c     |  0
 .../alchemy/{ => devboards}/db1x00/irqmap.c   |  0
 .../alchemy/{ => devboards}/pb1000/Makefile   |  0
 .../{ => devboards}/pb1000/board_setup.c      |  0
 .../alchemy/{ => devboards}/pb1000/init.c     |  0
 .../alchemy/{ => devboards}/pb1000/irqmap.c   |  0
 .../alchemy/{ => devboards}/pb1100/Makefile   |  0
 .../{ => devboards}/pb1100/board_setup.c      |  0
 .../alchemy/{ => devboards}/pb1100/init.c     |  0
 .../alchemy/{ => devboards}/pb1100/irqmap.c   |  0
 .../alchemy/{ => devboards}/pb1200/Makefile   |  0
 .../{ => devboards}/pb1200/board_setup.c      |  0
 .../alchemy/{ => devboards}/pb1200/init.c     |  0
 .../alchemy/{ => devboards}/pb1200/irqmap.c   |  0
 .../alchemy/{ => devboards}/pb1200/platform.c |  0
 .../alchemy/{ => devboards}/pb1500/Makefile   |  0
 .../{ => devboards}/pb1500/board_setup.c      |  0
 .../alchemy/{ => devboards}/pb1500/init.c     |  0
 .../alchemy/{ => devboards}/pb1500/irqmap.c   |  0
 .../alchemy/{ => devboards}/pb1550/Makefile   |  0
 .../{ => devboards}/pb1550/board_setup.c      |  0
 .../alchemy/{ => devboards}/pb1550/init.c     |  0
 .../alchemy/{ => devboards}/pb1550/irqmap.c   |  0
 27 files changed, 28 insertions(+), 12 deletions(-)
 create mode 100644 arch/mips/alchemy/devboards/Makefile
 rename arch/mips/alchemy/{ => devboards}/db1x00/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/db1x00/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/db1x00/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/db1x00/irqmap.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1000/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1000/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1000/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1000/irqmap.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1100/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1100/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1100/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1100/irqmap.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1200/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1200/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1200/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1200/irqmap.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1200/platform.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1500/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1500/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1500/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1500/irqmap.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1550/Makefile (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1550/board_setup.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1550/init.c (100%)
 rename arch/mips/alchemy/{ => devboards}/pb1550/irqmap.c (100%)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 0bc21207e3ac40..21b00e95daefac 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -188,84 +188,84 @@ cflags-$(CONFIG_SOC_AU1X00)	+= -I$(srctree)/arch/mips/include/asm/mach-au1x00
 #
 # AMD Alchemy Pb1000 eval board
 #
-libs-$(CONFIG_MIPS_PB1000)	+= arch/mips/alchemy/pb1000/
+core-$(CONFIG_MIPS_PB1000)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_PB1000)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1000)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1100 eval board
 #
-libs-$(CONFIG_MIPS_PB1100)	+= arch/mips/alchemy/pb1100/
+core-$(CONFIG_MIPS_PB1100)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_PB1100)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1100)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1500 eval board
 #
-libs-$(CONFIG_MIPS_PB1500)	+= arch/mips/alchemy/pb1500/
+core-$(CONFIG_MIPS_PB1500)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_PB1500)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1500)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1550 eval board
 #
-libs-$(CONFIG_MIPS_PB1550)	+= arch/mips/alchemy/pb1550/
+core-$(CONFIG_MIPS_PB1550)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_PB1550)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1550)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1200 eval board
 #
-libs-$(CONFIG_MIPS_PB1200)	+= arch/mips/alchemy/pb1200/
+core-$(CONFIG_MIPS_PB1200)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_PB1200)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1200)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1000 eval board
 #
-libs-$(CONFIG_MIPS_DB1000)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_DB1000)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_DB1000)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1000)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1100 eval board
 #
-libs-$(CONFIG_MIPS_DB1100)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_DB1100)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_DB1100)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1100)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1500 eval board
 #
-libs-$(CONFIG_MIPS_DB1500)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_DB1500)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_DB1500)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1500)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1550 eval board
 #
-libs-$(CONFIG_MIPS_DB1550)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_DB1550)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_DB1550)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1550)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1200 eval board
 #
-libs-$(CONFIG_MIPS_DB1200)	+= arch/mips/alchemy/pb1200/
+core-$(CONFIG_MIPS_DB1200)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_DB1200)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1200)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Bosporus eval board
 #
-libs-$(CONFIG_MIPS_BOSPORUS)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_BOSPORUS)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_BOSPORUS)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_BOSPORUS)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Mirage eval board
 #
-libs-$(CONFIG_MIPS_MIRAGE)	+= arch/mips/alchemy/db1x00/
+core-$(CONFIG_MIPS_MIRAGE)	+= arch/mips/alchemy/devboards/
 cflags-$(CONFIG_MIPS_MIRAGE)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_MIRAGE)	+= 0xffffffff80100000
 
diff --git a/arch/mips/alchemy/devboards/Makefile b/arch/mips/alchemy/devboards/Makefile
new file mode 100644
index 00000000000000..a98126bf147c71
--- /dev/null
+++ b/arch/mips/alchemy/devboards/Makefile
@@ -0,0 +1,16 @@
+#
+# Alchemy Develboards
+#
+
+obj-$(CONFIG_MIPS_PB1000)	+= pb1000/
+obj-$(CONFIG_MIPS_PB1100)	+= pb1100/
+obj-$(CONFIG_MIPS_PB1200)	+= pb1200/
+obj-$(CONFIG_MIPS_PB1500)	+= pb1500/
+obj-$(CONFIG_MIPS_PB1550)	+= pb1550/
+obj-$(CONFIG_MIPS_DB1000)	+= db1x00/
+obj-$(CONFIG_MIPS_DB1100)	+= db1x00/
+obj-$(CONFIG_MIPS_DB1200)	+= pb1200/
+obj-$(CONFIG_MIPS_DB1500)	+= db1x00/
+obj-$(CONFIG_MIPS_DB1550)	+= db1x00/
+obj-$(CONFIG_MIPS_BOSPORUS)	+= db1x00/
+obj-$(CONFIG_MIPS_MIRAGE)	+= db1x00/
diff --git a/arch/mips/alchemy/db1x00/Makefile b/arch/mips/alchemy/devboards/db1x00/Makefile
similarity index 100%
rename from arch/mips/alchemy/db1x00/Makefile
rename to arch/mips/alchemy/devboards/db1x00/Makefile
diff --git a/arch/mips/alchemy/db1x00/board_setup.c b/arch/mips/alchemy/devboards/db1x00/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/db1x00/board_setup.c
rename to arch/mips/alchemy/devboards/db1x00/board_setup.c
diff --git a/arch/mips/alchemy/db1x00/init.c b/arch/mips/alchemy/devboards/db1x00/init.c
similarity index 100%
rename from arch/mips/alchemy/db1x00/init.c
rename to arch/mips/alchemy/devboards/db1x00/init.c
diff --git a/arch/mips/alchemy/db1x00/irqmap.c b/arch/mips/alchemy/devboards/db1x00/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/db1x00/irqmap.c
rename to arch/mips/alchemy/devboards/db1x00/irqmap.c
diff --git a/arch/mips/alchemy/pb1000/Makefile b/arch/mips/alchemy/devboards/pb1000/Makefile
similarity index 100%
rename from arch/mips/alchemy/pb1000/Makefile
rename to arch/mips/alchemy/devboards/pb1000/Makefile
diff --git a/arch/mips/alchemy/pb1000/board_setup.c b/arch/mips/alchemy/devboards/pb1000/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/pb1000/board_setup.c
rename to arch/mips/alchemy/devboards/pb1000/board_setup.c
diff --git a/arch/mips/alchemy/pb1000/init.c b/arch/mips/alchemy/devboards/pb1000/init.c
similarity index 100%
rename from arch/mips/alchemy/pb1000/init.c
rename to arch/mips/alchemy/devboards/pb1000/init.c
diff --git a/arch/mips/alchemy/pb1000/irqmap.c b/arch/mips/alchemy/devboards/pb1000/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/pb1000/irqmap.c
rename to arch/mips/alchemy/devboards/pb1000/irqmap.c
diff --git a/arch/mips/alchemy/pb1100/Makefile b/arch/mips/alchemy/devboards/pb1100/Makefile
similarity index 100%
rename from arch/mips/alchemy/pb1100/Makefile
rename to arch/mips/alchemy/devboards/pb1100/Makefile
diff --git a/arch/mips/alchemy/pb1100/board_setup.c b/arch/mips/alchemy/devboards/pb1100/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/pb1100/board_setup.c
rename to arch/mips/alchemy/devboards/pb1100/board_setup.c
diff --git a/arch/mips/alchemy/pb1100/init.c b/arch/mips/alchemy/devboards/pb1100/init.c
similarity index 100%
rename from arch/mips/alchemy/pb1100/init.c
rename to arch/mips/alchemy/devboards/pb1100/init.c
diff --git a/arch/mips/alchemy/pb1100/irqmap.c b/arch/mips/alchemy/devboards/pb1100/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/pb1100/irqmap.c
rename to arch/mips/alchemy/devboards/pb1100/irqmap.c
diff --git a/arch/mips/alchemy/pb1200/Makefile b/arch/mips/alchemy/devboards/pb1200/Makefile
similarity index 100%
rename from arch/mips/alchemy/pb1200/Makefile
rename to arch/mips/alchemy/devboards/pb1200/Makefile
diff --git a/arch/mips/alchemy/pb1200/board_setup.c b/arch/mips/alchemy/devboards/pb1200/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/pb1200/board_setup.c
rename to arch/mips/alchemy/devboards/pb1200/board_setup.c
diff --git a/arch/mips/alchemy/pb1200/init.c b/arch/mips/alchemy/devboards/pb1200/init.c
similarity index 100%
rename from arch/mips/alchemy/pb1200/init.c
rename to arch/mips/alchemy/devboards/pb1200/init.c
diff --git a/arch/mips/alchemy/pb1200/irqmap.c b/arch/mips/alchemy/devboards/pb1200/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/pb1200/irqmap.c
rename to arch/mips/alchemy/devboards/pb1200/irqmap.c
diff --git a/arch/mips/alchemy/pb1200/platform.c b/arch/mips/alchemy/devboards/pb1200/platform.c
similarity index 100%
rename from arch/mips/alchemy/pb1200/platform.c
rename to arch/mips/alchemy/devboards/pb1200/platform.c
diff --git a/arch/mips/alchemy/pb1500/Makefile b/arch/mips/alchemy/devboards/pb1500/Makefile
similarity index 100%
rename from arch/mips/alchemy/pb1500/Makefile
rename to arch/mips/alchemy/devboards/pb1500/Makefile
diff --git a/arch/mips/alchemy/pb1500/board_setup.c b/arch/mips/alchemy/devboards/pb1500/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/pb1500/board_setup.c
rename to arch/mips/alchemy/devboards/pb1500/board_setup.c
diff --git a/arch/mips/alchemy/pb1500/init.c b/arch/mips/alchemy/devboards/pb1500/init.c
similarity index 100%
rename from arch/mips/alchemy/pb1500/init.c
rename to arch/mips/alchemy/devboards/pb1500/init.c
diff --git a/arch/mips/alchemy/pb1500/irqmap.c b/arch/mips/alchemy/devboards/pb1500/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/pb1500/irqmap.c
rename to arch/mips/alchemy/devboards/pb1500/irqmap.c
diff --git a/arch/mips/alchemy/pb1550/Makefile b/arch/mips/alchemy/devboards/pb1550/Makefile
similarity index 100%
rename from arch/mips/alchemy/pb1550/Makefile
rename to arch/mips/alchemy/devboards/pb1550/Makefile
diff --git a/arch/mips/alchemy/pb1550/board_setup.c b/arch/mips/alchemy/devboards/pb1550/board_setup.c
similarity index 100%
rename from arch/mips/alchemy/pb1550/board_setup.c
rename to arch/mips/alchemy/devboards/pb1550/board_setup.c
diff --git a/arch/mips/alchemy/pb1550/init.c b/arch/mips/alchemy/devboards/pb1550/init.c
similarity index 100%
rename from arch/mips/alchemy/pb1550/init.c
rename to arch/mips/alchemy/devboards/pb1550/init.c
diff --git a/arch/mips/alchemy/pb1550/irqmap.c b/arch/mips/alchemy/devboards/pb1550/irqmap.c
similarity index 100%
rename from arch/mips/alchemy/pb1550/irqmap.c
rename to arch/mips/alchemy/devboards/pb1550/irqmap.c
-- 
GitLab