]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] TXx9: Reorganize code
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 10 Jul 2008 15:31:36 +0000 (00:31 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:35 +0000 (18:44 +0100)
Move arch/mips/{jmr3927,tx4927,tx4938} into arch/mips/txx9/ tree.
This will help more code sharing and maintainance.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
49 files changed:
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/jmr3927/common/Makefile [deleted file]
arch/mips/jmr3927/common/puts.c [deleted file]
arch/mips/pci/Makefile
arch/mips/pci/fixup-jmr3927.c
arch/mips/pci/fixup-rbtx4927.c
arch/mips/pci/fixup-rbtx4938.c [moved from arch/mips/pci/fixup-tx4938.c with 98% similarity]
arch/mips/pci/ops-tx3927.c
arch/mips/pci/ops-tx4927.c
arch/mips/pci/ops-tx4938.c
arch/mips/pci/pci-jmr3927.c
arch/mips/tx4927/Kconfig [deleted file]
arch/mips/tx4927/common/Makefile [deleted file]
arch/mips/tx4927/common/tx4927_dbgio.c [deleted file]
arch/mips/tx4927/toshiba_rbtx4927/Makefile [deleted file]
arch/mips/tx4938/common/Makefile [deleted file]
arch/mips/txx9/Kconfig [moved from arch/mips/tx4938/Kconfig with 86% similarity]
arch/mips/txx9/generic/Makefile [new file with mode: 0644]
arch/mips/txx9/generic/dbgio.c [moved from arch/mips/tx4938/common/dbgio.c with 100% similarity]
arch/mips/txx9/generic/irq_tx4927.c [moved from arch/mips/tx4927/common/tx4927_irq.c with 96% similarity]
arch/mips/txx9/generic/irq_tx4938.c [moved from arch/mips/tx4938/common/irq.c with 97% similarity]
arch/mips/txx9/generic/mem_tx4927.c [moved from arch/mips/tx4927/common/tx4927_prom.c with 99% similarity]
arch/mips/txx9/generic/mem_tx4938.c [moved from arch/mips/tx4938/common/prom.c with 100% similarity]
arch/mips/txx9/generic/smsc_fdc37m81x.c [moved from arch/mips/tx4927/common/smsc_fdc37m81x.c with 99% similarity]
arch/mips/txx9/jmr3927/Makefile [moved from arch/mips/jmr3927/rbhma3100/Makefile with 50% similarity]
arch/mips/txx9/jmr3927/init.c [moved from arch/mips/jmr3927/rbhma3100/init.c with 98% similarity]
arch/mips/txx9/jmr3927/irq.c [moved from arch/mips/jmr3927/rbhma3100/irq.c with 99% similarity]
arch/mips/txx9/jmr3927/kgdb_io.c [moved from arch/mips/jmr3927/rbhma3100/kgdb_io.c with 98% similarity]
arch/mips/txx9/jmr3927/prom.c [moved from arch/mips/jmr3927/common/prom.c with 84% similarity]
arch/mips/txx9/jmr3927/setup.c [moved from arch/mips/jmr3927/rbhma3100/setup.c with 99% similarity]
arch/mips/txx9/rbtx4927/Makefile [new file with mode: 0644]
arch/mips/txx9/rbtx4927/irq.c [moved from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_irq.c with 98% similarity]
arch/mips/txx9/rbtx4927/prom.c [moved from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c with 98% similarity]
arch/mips/txx9/rbtx4927/setup.c [moved from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c with 99% similarity]
arch/mips/txx9/rbtx4938/Makefile [moved from arch/mips/tx4938/toshiba_rbtx4938/Makefile with 51% similarity]
arch/mips/txx9/rbtx4938/irq.c [moved from arch/mips/tx4938/toshiba_rbtx4938/irq.c with 97% similarity]
arch/mips/txx9/rbtx4938/prom.c [moved from arch/mips/tx4938/toshiba_rbtx4938/prom.c with 94% similarity]
arch/mips/txx9/rbtx4938/setup.c [moved from arch/mips/tx4938/toshiba_rbtx4938/setup.c with 99% similarity]
arch/mips/txx9/rbtx4938/spi_eeprom.c [moved from arch/mips/tx4938/toshiba_rbtx4938/spi_eeprom.c with 96% similarity]
include/asm-mips/txx9/jmr3927.h [moved from include/asm-mips/jmr3927/jmr3927.h with 98% similarity]
include/asm-mips/txx9/rbtx4927.h [moved from include/asm-mips/tx4927/toshiba_rbtx4927.h with 92% similarity]
include/asm-mips/txx9/rbtx4938.h [moved from include/asm-mips/tx4938/rbtx4938.h with 97% similarity]
include/asm-mips/txx9/smsc_fdc37m81x.h [moved from include/asm-mips/tx4927/smsc_fdc37m81x.h with 97% similarity]
include/asm-mips/txx9/spi.h [moved from include/asm-mips/tx4938/spi.h with 77% similarity]
include/asm-mips/txx9/tx3927.h [moved from include/asm-mips/jmr3927/tx3927.h with 98% similarity]
include/asm-mips/txx9/tx4927.h [moved from include/asm-mips/tx4927/tx4927.h with 99% similarity]
include/asm-mips/txx9/tx4938.h [moved from include/asm-mips/tx4938/tx4938.h with 99% similarity]
include/asm-mips/txx9/txx927.h [moved from include/asm-mips/jmr3927/txx927.h with 97% similarity]

index a0381427ec5c7483b7c1d240a0aad74f96925e6e..3202960f7597380acfb0eb2487122a82b33aea06 100644 (file)
@@ -642,8 +642,7 @@ source "arch/mips/lasat/Kconfig"
 source "arch/mips/pmc-sierra/Kconfig"
 source "arch/mips/sgi-ip27/Kconfig"
 source "arch/mips/sibyte/Kconfig"
-source "arch/mips/tx4927/Kconfig"
-source "arch/mips/tx4938/Kconfig"
+source "arch/mips/txx9/Kconfig"
 source "arch/mips/vr41xx/Kconfig"
 
 endmenu
index 36aa690484c831a6195dd5b69e113583969c2d3e..8e1e49c5186bc93e83939407b1b9dda05a6470a6 100644 (file)
@@ -553,8 +553,8 @@ all-$(CONFIG_SNI_RM)                := vmlinux.ecoff
 #
 # Toshiba JMR-TX3927 board
 #
-core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/jmr3927/rbhma3100/ \
-                                  arch/mips/jmr3927/common/
+core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/txx9/jmr3927/ \
+                                  arch/mips/txx9/generic/
 cflags-$(CONFIG_TOSHIBA_JMR3927) += -Iinclude/asm-mips/mach-jmr3927
 load-$(CONFIG_TOSHIBA_JMR3927) += 0xffffffff80050000
 
@@ -562,16 +562,16 @@ load-$(CONFIG_TOSHIBA_JMR3927)    += 0xffffffff80050000
 # Toshiba RBTX4927 board or
 # Toshiba RBTX4937 board
 #
-core-$(CONFIG_TOSHIBA_RBTX4927)        += arch/mips/tx4927/toshiba_rbtx4927/
-core-$(CONFIG_TOSHIBA_RBTX4927)        += arch/mips/tx4927/common/
+core-$(CONFIG_TOSHIBA_RBTX4927)        += arch/mips/txx9/rbtx4927/
+core-$(CONFIG_TOSHIBA_RBTX4927)        += arch/mips/txx9/generic/
 cflags-$(CONFIG_TOSHIBA_RBTX4927) += -Iinclude/asm-mips/mach-tx49xx
 load-$(CONFIG_TOSHIBA_RBTX4927)        += 0xffffffff80020000
 
 #
 # Toshiba RBTX4938 board
 #
-core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/toshiba_rbtx4938/
-core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/common/
+core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/rbtx4938/
+core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/generic/
 cflags-$(CONFIG_TOSHIBA_RBTX4938) += -Iinclude/asm-mips/mach-tx49xx
 load-$(CONFIG_TOSHIBA_RBTX4938) += 0xffffffff80100000
 
diff --git a/arch/mips/jmr3927/common/Makefile b/arch/mips/jmr3927/common/Makefile
deleted file mode 100644 (file)
index 8fd4fcc..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-# Makefile for the common code of TOSHIBA JMR-TX3927 board
-#
-
-obj-y   += prom.o puts.o
-
-EXTRA_CFLAGS += -Werror
diff --git a/arch/mips/jmr3927/common/puts.c b/arch/mips/jmr3927/common/puts.c
deleted file mode 100644 (file)
index c611ab4..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- *
- * BRIEF MODULE DESCRIPTION
- *     Low level uart routines to directly access a TX[34]927 SIO.
- *
- * Copyright 2001 MontaVista Software Inc.
- * Author: MontaVista Software, Inc.
- *             ahennessy@mvista.com or source@mvista.com
- *
- * Copyright (C) 2000-2001 Toshiba Corporation
- *
- * Based on arch/mips/au1000/common/puts.c
- *
- *  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.
- *
- *  THIS  SOFTWARE  IS PROVIDED   ``AS  IS'' AND   ANY  EXPRESS OR IMPLIED
- *  WARRANTIES,   INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF
- *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
- *  NO  EVENT  SHALL   THE AUTHOR  BE    LIABLE FOR ANY   DIRECT, INDIRECT,
- *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- *  NOT LIMITED   TO, PROCUREMENT OF  SUBSTITUTE GOODS  OR SERVICES; LOSS OF
- *  USE, DATA,  OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- *  ANY THEORY OF LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT
- *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *  You should have received a copy of the  GNU General Public License along
- *  with this program; if not, write  to the Free Software Foundation, Inc.,
- *  675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#include <asm/jmr3927/tx3927.h>
-
-#define TIMEOUT       0xffffff
-
-void
-prom_putchar(char c)
-{
-        int i = 0;
-
-        do {
-            i++;
-            if (i>TIMEOUT)
-                break;
-        } while (!(tx3927_sioptr(1)->cisr & TXx927_SICISR_TXALS));
-       tx3927_sioptr(1)->tfifo = c;
-       return;
-}
-
-void
-puts(const char *cp)
-{
-    while (*cp)
-       prom_putchar(*cp++);
-    prom_putchar('\r');
-    prom_putchar('\n');
-}
index 80fa5abb25d402b58487a4aa201eacc9b8542409..4608e43de28cf55c31d6b143bbc8c4fbd7e94e5c 100644 (file)
@@ -43,7 +43,7 @@ obj-$(CONFIG_TANBAC_TB0226)   += fixup-tb0226.o
 obj-$(CONFIG_TANBAC_TB0287)    += fixup-tb0287.o
 obj-$(CONFIG_TOSHIBA_JMR3927)  += fixup-jmr3927.o pci-jmr3927.o
 obj-$(CONFIG_TOSHIBA_RBTX4927) += fixup-rbtx4927.o ops-tx4927.o
-obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-tx4938.o ops-tx4938.o
+obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-rbtx4938.o ops-tx4938.o
 obj-$(CONFIG_VICTOR_MPC30X)    += fixup-mpc30x.o
 obj-$(CONFIG_ZAO_CAPCELLA)     += fixup-capcella.o
 obj-$(CONFIG_WR_PPMC)          += fixup-wrppmc.o
index e974394be7bc271b4e18e35130e3328ed1a73c7e..41dcd6a3aae531a0704b274151d6b463531b6f68 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 
 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 {
index 2d234ca017db0f47853422a7288c252bc1768432..26013badfe1f53d2829313d694bf1407374167fc 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 
-#include <asm/tx4927/tx4927.h>
+#include <asm/txx9/tx4927.h>
 
 #undef  DEBUG
 #ifdef  DEBUG
similarity index 98%
rename from arch/mips/pci/fixup-tx4938.c
rename to arch/mips/pci/fixup-rbtx4938.c
index f2ba06ee0c10f8d71897de805e8c2d682f45ea20..64d4510c026562e745ee2760ca1b93e60328f38b 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 
-#include <asm/tx4938/rbtx4938.h>
+#include <asm/txx9/rbtx4938.h>
 
 extern struct pci_controller tx4938_pci_controller[];
 
index aa698bd0d5e39abd78837814b42563195ed7f1f7..5d398f694682afa59dde02d79953c0a17a296b0a 100644 (file)
@@ -39,7 +39,7 @@
 #include <linux/init.h>
 
 #include <asm/addrspace.h>
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 
 static inline int mkaddr(unsigned char bus, unsigned char dev_fn,
        unsigned char where)
index 1bbafeb4a774a06229f186f054853eb449606d08..54730eee451b448bd90495dda81220aed6eabcc3 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/pci.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/tx4927/tx4927.h>
+#include <asm/txx9/tx4927.h>
 
 /* initialize in setup */
 struct resource pci_io_resource = {
index a450c4062031cc2e002e96a0e20a41eece0e3adf..34494b82cb2251ab9d89a5a0d6197982478cf5cd 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/init.h>
 
 #include <asm/addrspace.h>
-#include <asm/tx4938/rbtx4938.h>
+#include <asm/txx9/rbtx4938.h>
 
 /* initialize in setup */
 struct resource pci_io_resource = {
index cb84f4e8ccae693c2829a4e04e1df60e79431bb5..7fb6bd71901afd64e6f7a8afa0ab3b7a1ec001b3 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 #include <asm/debug.h>
 
 struct resource pci_io_resource = {
diff --git a/arch/mips/tx4927/Kconfig b/arch/mips/tx4927/Kconfig
deleted file mode 100644 (file)
index 5fbbe12..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-config TOSHIBA_FPCIB0
-       bool "FPCIB0 Backplane Support"
-       depends on TOSHIBA_RBTX4927
diff --git a/arch/mips/tx4927/common/Makefile b/arch/mips/tx4927/common/Makefile
deleted file mode 100644 (file)
index a7fe76a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-# Makefile for common code for Toshiba TX4927 based systems
-#
-
-obj-y  += tx4927_prom.o tx4927_irq.o
-
-obj-$(CONFIG_TOSHIBA_FPCIB0)      += smsc_fdc37m81x.o
-obj-$(CONFIG_KGDB)                 += tx4927_dbgio.o
-
-EXTRA_CFLAGS += -Werror
diff --git a/arch/mips/tx4927/common/tx4927_dbgio.c b/arch/mips/tx4927/common/tx4927_dbgio.c
deleted file mode 100644 (file)
index ea1ff23..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * linux/arch/mips/tx4927/common/tx4927_dbgio.c
- *
- * kgdb interface for gdb
- *
- * Author: MontaVista Software, Inc.
- *         source@mvista.com
- *
- * Copyright 2001-2002 MontaVista Software Inc.
- *
- *  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.
- *
- *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
- *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- *  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- *  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- *  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  675 Mass Ave, Cambridge, MA 02139, USA.
- */
-#include <linux/types.h>
-
-u8 getDebugChar(void)
-{
-       extern u8 txx9_sio_kdbg_rd(void);
-       return (txx9_sio_kdbg_rd());
-}
-
-int putDebugChar(u8 byte)
-{
-       extern int txx9_sio_kdbg_wr( u8 ch );
-       return (txx9_sio_kdbg_wr(byte));
-}
diff --git a/arch/mips/tx4927/toshiba_rbtx4927/Makefile b/arch/mips/tx4927/toshiba_rbtx4927/Makefile
deleted file mode 100644 (file)
index 13f9672..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-obj-y  += toshiba_rbtx4927_prom.o
-obj-y  += toshiba_rbtx4927_setup.o
-obj-y  += toshiba_rbtx4927_irq.o
-
-EXTRA_CFLAGS += -Werror
diff --git a/arch/mips/tx4938/common/Makefile b/arch/mips/tx4938/common/Makefile
deleted file mode 100644 (file)
index 56aa1ed..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# Makefile for common code for Toshiba TX4927 based systems
-#
-
-obj-y  += prom.o irq.o
-obj-$(CONFIG_KGDB) += dbgio.o
-
-EXTRA_CFLAGS += -Werror
similarity index 86%
rename from arch/mips/tx4938/Kconfig
rename to arch/mips/txx9/Kconfig
index d90e9cd85138abaab9d6d04d607b2b5935255bc9..98d103402b10aefbc08c755a6724319daa80d7c8 100644 (file)
@@ -1,3 +1,7 @@
+config TOSHIBA_FPCIB0
+       bool "FPCIB0 Backplane Support"
+       depends on TOSHIBA_RBTX4927
+
 if TOSHIBA_RBTX4938
 
 comment "Multiplex Pin Select"
diff --git a/arch/mips/txx9/generic/Makefile b/arch/mips/txx9/generic/Makefile
new file mode 100644 (file)
index 0000000..8cb4a7e
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Makefile for common code for TXx9 based systems
+#
+
+obj-$(CONFIG_TOSHIBA_RBTX4927) += mem_tx4927.o irq_tx4927.o
+obj-$(CONFIG_TOSHIBA_RBTX4938) += mem_tx4938.o irq_tx4938.o
+obj-$(CONFIG_TOSHIBA_FPCIB0)   += smsc_fdc37m81x.o
+obj-$(CONFIG_KGDB)     += dbgio.o
+
+EXTRA_CFLAGS += -Werror
similarity index 96%
rename from arch/mips/tx4927/common/tx4927_irq.c
rename to arch/mips/txx9/generic/irq_tx4927.c
index 0aabd57fdad2575baf635ad3160b6ae17c9597e0..685ecc2ed5513a2ccf228aef7d9c4bc83b7a5876 100644 (file)
@@ -27,9 +27,8 @@
 #include <linux/interrupt.h>
 #include <asm/irq_cpu.h>
 #include <asm/mipsregs.h>
-#include <asm/tx4927/tx4927.h>
 #ifdef CONFIG_TOSHIBA_RBTX4927
-#include <asm/tx4927/toshiba_rbtx4927.h>
+#include <asm/txx9/rbtx4927.h>
 #endif
 
 void __init tx4927_irq_init(void)
similarity index 97%
rename from arch/mips/tx4938/common/irq.c
rename to arch/mips/txx9/generic/irq_tx4938.c
index c059b899d1200220aa8b3e5a0682b7500bc30de4..0886d91388181efa3bab79b874a415a070a37860 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/interrupt.h>
 #include <asm/irq_cpu.h>
 #include <asm/mipsregs.h>
-#include <asm/tx4938/rbtx4938.h>
+#include <asm/txx9/rbtx4938.h>
 
 void __init
 tx4938_irq_init(void)
similarity index 99%
rename from arch/mips/tx4927/common/tx4927_prom.c
rename to arch/mips/txx9/generic/mem_tx4927.c
index cc2aa9d63e826c811192756e47a8624e0946e4f5..12dfc377bf2fa90343d9827b45fc12627d8239ba 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/io.h>
-#include <asm/tx4927/tx4927.h>
 
 static unsigned int __init tx4927_process_sdccr(unsigned long addr)
 {
similarity index 99%
rename from arch/mips/tx4927/common/smsc_fdc37m81x.c
rename to arch/mips/txx9/generic/smsc_fdc37m81x.c
index 33f517bc9a0833fa3fb6cac52d7cbe3755858b6f..69e487467fa5e2ceaaf13149cf5f3ee28ac96c6f 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/init.h>
 #include <linux/types.h>
 #include <asm/io.h>
-#include <asm/tx4927/smsc_fdc37m81x.h>
+#include <asm/txx9/smsc_fdc37m81x.h>
 
 #define DEBUG
 
similarity index 50%
rename from arch/mips/jmr3927/rbhma3100/Makefile
rename to arch/mips/txx9/jmr3927/Makefile
index d86e30dca8f37f22dbab4cb2c92176689c129e21..5f83ea3752257ea3206bbe4d60d1d9f7154be973 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile for TOSHIBA JMR-TX3927 board
 #
 
-obj-y                          += init.o irq.o setup.o
-obj-$(CONFIG_KGDB)             += kgdb_io.o
+obj-y  += prom.o init.o irq.o setup.o
+obj-$(CONFIG_KGDB)     += kgdb_io.o
 
 EXTRA_CFLAGS += -Werror
similarity index 98%
rename from arch/mips/jmr3927/rbhma3100/init.c
rename to arch/mips/txx9/jmr3927/init.c
index 700b9cf8eb9d7dee8b4c25a479d1ebf388dea97c..1bbb5343baf4936af2a053313e898b86d761e40f 100644 (file)
@@ -29,7 +29,7 @@
  */
 #include <linux/init.h>
 #include <asm/bootinfo.h>
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 
 extern void  __init prom_init_cmdline(void);
 
similarity index 99%
rename from arch/mips/jmr3927/rbhma3100/irq.c
rename to arch/mips/txx9/jmr3927/irq.c
index 3a47e8ce119616bb1fbc244eef8e6a86f4c9d59b..85e1daf15c7b33c055212511c13bc1a10dd24f59 100644 (file)
@@ -39,7 +39,7 @@
 #include <asm/system.h>
 
 #include <asm/processor.h>
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 
 #if JMR3927_IRQ_END > NR_IRQS
 #error JMR3927_IRQ_END > NR_IRQS
similarity index 98%
rename from arch/mips/jmr3927/rbhma3100/kgdb_io.c
rename to arch/mips/txx9/jmr3927/kgdb_io.c
index 342579cfdc01d3b37ca739b96c862753734cc202..5bd757e56f7923a1ea80443211828bd069392ae5 100644 (file)
@@ -31,7 +31,7 @@
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 
 #define TIMEOUT       0xffffff
 
similarity index 84%
rename from arch/mips/jmr3927/common/prom.c
rename to arch/mips/txx9/jmr3927/prom.c
index 5398813e50e60c480e295c417d55e9fe7e910bb4..8bc1049b622e3808b8b6cc45b03545dbb2f60c9f 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/string.h>
 
 #include <asm/bootinfo.h>
+#include <asm/txx9/tx3927.h>
 
 char * __init prom_getcmdline(void)
 {
@@ -70,3 +71,28 @@ void  __init prom_init_cmdline(void)
 void __init prom_free_prom_memory(void)
 {
 }
+
+#define TIMEOUT       0xffffff
+
+void
+prom_putchar(char c)
+{
+        int i = 0;
+
+        do {
+            i++;
+            if (i>TIMEOUT)
+                break;
+        } while (!(tx3927_sioptr(1)->cisr & TXx927_SICISR_TXALS));
+       tx3927_sioptr(1)->tfifo = c;
+       return;
+}
+
+void
+puts(const char *cp)
+{
+    while (*cp)
+       prom_putchar(*cp++);
+    prom_putchar('\r');
+    prom_putchar('\n');
+}
similarity index 99%
rename from arch/mips/jmr3927/rbhma3100/setup.c
rename to arch/mips/txx9/jmr3927/setup.c
index f39c444e42d4156ceabcdf10a30a26e3cf4d3fb8..41e0f3b3af2cc39fa215d6da565356d5dae861d7 100644 (file)
@@ -44,7 +44,7 @@
 #include <asm/txx9tmr.h>
 #include <asm/txx9pio.h>
 #include <asm/reboot.h>
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/txx9/jmr3927.h>
 #include <asm/mipsregs.h>
 
 extern void puts(const char *cp);
diff --git a/arch/mips/txx9/rbtx4927/Makefile b/arch/mips/txx9/rbtx4927/Makefile
new file mode 100644 (file)
index 0000000..f3e1f59
--- /dev/null
@@ -0,0 +1,3 @@
+obj-y  += prom.o setup.o irq.o
+
+EXTRA_CFLAGS += -Werror
similarity index 98%
rename from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_irq.c
rename to arch/mips/txx9/rbtx4927/irq.c
index c18901a75cc42d82bb3dda6d4ac1f82f51e3623d..936e50e91d957dabcdd1b2e4be0e4fa757dc258e 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_irq.c
- *
  * Toshiba RBTX4927 specific interrupt handlers
  *
  * Author: MontaVista Software, Inc.
@@ -116,7 +114,7 @@ JP7 is not bus master -- do NOT use -- only 4 pci bus master's allowed -- SouthB
 #ifdef CONFIG_TOSHIBA_FPCIB0
 #include <asm/i8259.h>
 #endif
-#include <asm/tx4927/toshiba_rbtx4927.h>
+#include <asm/txx9/rbtx4927.h>
 
 #define TOSHIBA_RBTX4927_IRQ_IOC_RAW_BEG   0
 #define TOSHIBA_RBTX4927_IRQ_IOC_RAW_END   7
similarity index 98%
rename from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c
rename to arch/mips/txx9/rbtx4927/prom.c
index fdbad4bc6021d571ea96fe94b2918d5991312c45..0020bbee838b6596e609078e2c08994e83cc191c 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/bootinfo.h>
 #include <asm/cpu.h>
 #include <asm/mipsregs.h>
-#include <asm/tx4927/tx4927.h>
+#include <asm/txx9/tx4927.h>
 
 void __init prom_init_cmdline(void)
 {
similarity index 99%
rename from arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
rename to arch/mips/txx9/rbtx4927/setup.c
index 185f303c0e2a9ec9df7bdd9c4130d8f6e6009f9a..df1b6e99b666361accda8f6fc2b04897bd51f88c 100644 (file)
@@ -59,9 +59,9 @@
 #include <asm/time.h>
 #include <asm/txx9tmr.h>
 #ifdef CONFIG_TOSHIBA_FPCIB0
-#include <asm/tx4927/smsc_fdc37m81x.h>
+#include <asm/txx9/smsc_fdc37m81x.h>
 #endif
-#include <asm/tx4927/toshiba_rbtx4927.h>
+#include <asm/txx9/rbtx4927.h>
 #ifdef CONFIG_SERIAL_TXX9
 #include <linux/serial_core.h>
 #endif
similarity index 51%
rename from arch/mips/tx4938/toshiba_rbtx4938/Makefile
rename to arch/mips/txx9/rbtx4938/Makefile
index 2316dd7dd1bdf91ba62e0034a4a3b322ef54698c..9dcc52ae5b9d49d6021b90d14126d5b1eabb48d9 100644 (file)
@@ -1,7 +1,3 @@
-#
-# Makefile for common code for Toshiba TX4927 based systems
-#
-
 obj-y  += prom.o setup.o irq.o spi_eeprom.o
 
 EXTRA_CFLAGS += -Werror
similarity index 97%
rename from arch/mips/tx4938/toshiba_rbtx4938/irq.c
rename to arch/mips/txx9/rbtx4938/irq.c
index 4d6a8dc46c76eb963e7c5a0df6acd0d882976180..f4984820251a9e3177c62e8e77b121578b9a52e6 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/arch/mips/tx4938/toshiba_rbtx4938/irq.c
- *
  * Toshiba RBTX4938 specific interrupt handlers
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
@@ -68,7 +66,7 @@ IRQ  Device
 */
 #include <linux/init.h>
 #include <linux/interrupt.h>
-#include <asm/tx4938/rbtx4938.h>
+#include <asm/txx9/rbtx4938.h>
 
 static void toshiba_rbtx4938_irq_ioc_enable(unsigned int irq);
 static void toshiba_rbtx4938_irq_ioc_disable(unsigned int irq);
similarity index 94%
rename from arch/mips/tx4938/toshiba_rbtx4938/prom.c
rename to arch/mips/txx9/rbtx4938/prom.c
index 1644bffa501aae4d940c14026a162bf2ee009ef2..134fcc2dc7d20cf06384099e06c02c5141365cf6 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/arch/mips/tx4938/toshiba_rbtx4938/prom.c
- *
  * rbtx4938 specific prom routines
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
@@ -19,7 +17,7 @@
 
 #include <asm/addrspace.h>
 #include <asm/bootinfo.h>
-#include <asm/tx4938/tx4938.h>
+#include <asm/txx9/tx4938.h>
 
 void __init prom_init_cmdline(void)
 {
similarity index 99%
rename from arch/mips/tx4938/toshiba_rbtx4938/setup.c
rename to arch/mips/txx9/rbtx4938/setup.c
index 3a3659e8633aa642a79ac3988127632b9cf38ff3..bbd572c9675b94b9f7b5d3a5f40f5930a1ac27c2 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/arch/mips/tx4938/toshiba_rbtx4938/setup.c
- *
  * Setup pointers to hardware-dependent routines.
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
 #include <asm/txx9tmr.h>
 #include <asm/io.h>
 #include <asm/bootinfo.h>
-#include <asm/tx4938/rbtx4938.h>
+#include <asm/txx9/rbtx4938.h>
 #ifdef CONFIG_SERIAL_TXX9
 #include <linux/serial_core.h>
 #endif
 #include <linux/spi/spi.h>
-#include <asm/tx4938/spi.h>
+#include <asm/txx9/spi.h>
 #include <asm/txx9pio.h>
 
 extern char * __init prom_getcmdline(void);
similarity index 96%
rename from arch/mips/tx4938/toshiba_rbtx4938/spi_eeprom.c
rename to arch/mips/txx9/rbtx4938/spi_eeprom.c
index 4d6b4ade5e8cd208ffcbde8df3583c9b09556f7c..a7ea8b041c1dccdfb38213e3a14d343a243e069b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/mips/tx4938/toshiba_rbtx4938/spi_eeprom.c
+ * spi_eeprom.c
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
  * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
@@ -13,7 +13,7 @@
 #include <linux/device.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/eeprom.h>
-#include <asm/tx4938/spi.h>
+#include <asm/txx9/spi.h>
 
 #define AT250X0_PAGE_SIZE      8
 
similarity index 98%
rename from include/asm-mips/jmr3927/jmr3927.h
rename to include/asm-mips/txx9/jmr3927.h
index a162268f17df42ba8794032ce4c0bacc4f534345..29e54981a86e65ccf165d77230ff14c50b45386b 100644 (file)
@@ -7,10 +7,10 @@
  *
  * Copyright (C) 2000-2001 Toshiba Corporation
  */
-#ifndef __ASM_TX3927_JMR3927_H
-#define __ASM_TX3927_JMR3927_H
+#ifndef __ASM_TXX9_JMR3927_H
+#define __ASM_TXX9_JMR3927_H
 
-#include <asm/jmr3927/tx3927.h>
+#include <asm/txx9/tx3927.h>
 #include <asm/addrspace.h>
 #include <asm/system.h>
 #include <asm/txx9irq.h>
  *     INT[3:0]
  */
 
-#endif /* __ASM_TX3927_JMR3927_H */
+#endif /* __ASM_TXX9_JMR3927_H */
similarity index 92%
rename from include/asm-mips/tx4927/toshiba_rbtx4927.h
rename to include/asm-mips/txx9/rbtx4927.h
index d6b32acd6b7b80e854180e24985ca3b127f81fa5..5531342bcc012082378f048037e31d7eeb69f94e 100644 (file)
  *  with this program; if not, write to the Free Software Foundation, Inc.,
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#ifndef __ASM_TX4927_TOSHIBA_RBTX4927_H
-#define __ASM_TX4927_TOSHIBA_RBTX4927_H
+#ifndef __ASM_TXX9_RBTX4927_H
+#define __ASM_TXX9_RBTX4927_H
 
-#include <asm/tx4927/tx4927.h>
+#include <asm/txx9/tx4927.h>
 
 #ifdef CONFIG_PCI
 #define TBTX4927_ISA_IO_OFFSET TX4927_PCIIO
@@ -46,4 +46,4 @@
 
 int toshiba_rbtx4927_irq_nested(int sw_irq);
 
-#endif /* __ASM_TX4927_TOSHIBA_RBTX4927_H */
+#endif /* __ASM_TXX9_RBTX4927_H */
similarity index 97%
rename from include/asm-mips/tx4938/rbtx4938.h
rename to include/asm-mips/txx9/rbtx4938.h
index dfed7beb533fc392effee17408ebbb0dc1618a9b..8450f735d056433fe5cdd178c3d7466147a27053 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * linux/include/asm-mips/tx4938/rbtx4938.h
  * Definitions for TX4937/TX4938
  *
  * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
@@ -9,12 +8,12 @@
  *
  * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
  */
-#ifndef __ASM_TX_BOARDS_RBTX4938_H
-#define __ASM_TX_BOARDS_RBTX4938_H
+#ifndef __ASM_TXX9_RBTX4938_H
+#define __ASM_TXX9_RBTX4938_H
 
 #include <asm/addrspace.h>
-#include <asm/tx4938/tx4938.h>
 #include <asm/txx9irq.h>
+#include <asm/txx9/tx4938.h>
 
 /* CS */
 #define RBTX4938_CE0   0x1c000000      /* 64M */
 #define RBTX4938_RTL_8019_BASE (RBTX4938_ETHER_ADDR - mips_io_port_base)
 #define RBTX4938_RTL_8019_IRQ  (RBTX4938_IRQ_ETHER)
 
-#endif /* __ASM_TX_BOARDS_RBTX4938_H */
+#endif /* __ASM_TXX9_RBTX4938_H */
similarity index 97%
rename from include/asm-mips/tx4927/smsc_fdc37m81x.h
rename to include/asm-mips/txx9/smsc_fdc37m81x.h
index 5d93bab51254951e778c50b3d0a16faf211772ea..9375e4fc2289bd6132cd68009ff7715ab3e8b9d3 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/include/asm-mips/tx4927/smsc_fdc37m81x.h
- *
  * Interface for smsc fdc48m81x Super IO chip
  *
  * Author: MontaVista Software, Inc. source@mvista.com
similarity index 77%
rename from include/asm-mips/tx4938/spi.h
rename to include/asm-mips/txx9/spi.h
index 6a60c83e152bcaf156ca08da259fb980587b0828..ddfb2a0dc4328b08b8b25ee29ccb83e7ebe93e33 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * linux/include/asm-mips/tx4938/spi.h
  * Definitions for TX4937/TX4938 SPI
  *
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
  * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
  */
-#ifndef __ASM_TX_BOARDS_TX4938_SPI_H
-#define __ASM_TX_BOARDS_TX4938_SPI_H
+#ifndef __ASM_TXX9_SPI_H
+#define __ASM_TXX9_SPI_H
 
 extern int spi_eeprom_register(int chipid);
 extern int spi_eeprom_read(int chipid, int address, unsigned char *buf, int len);
 
-#endif /* __ASM_TX_BOARDS_TX4938_SPI_H */
+#endif /* __ASM_TXX9_SPI_H */
similarity index 98%
rename from include/asm-mips/jmr3927/tx3927.h
rename to include/asm-mips/txx9/tx3927.h
index fb580333c102b21499ffc86fac0b370d69ee1813..63b62d6061f593a64345263c9ddeec65e2e0fee0 100644 (file)
@@ -5,10 +5,10 @@
  *
  * Copyright (C) 2000 Toshiba Corporation
  */
-#ifndef __ASM_TX3927_H
-#define __ASM_TX3927_H
+#ifndef __ASM_TXX9_TX3927_H
+#define __ASM_TXX9_TX3927_H
 
-#include <asm/jmr3927/txx927.h>
+#include <asm/txx9/txx927.h>
 
 #define TX3927_SDRAMC_REG      0xfffe8000
 #define TX3927_ROMC_REG                0xfffe9000
@@ -316,4 +316,4 @@ struct tx3927_ccfg_reg {
 #define tx3927_sioptr(ch)      ((struct txx927_sio_reg *)TX3927_SIO_REG(ch))
 #define tx3927_pioptr          ((struct txx9_pio_reg __iomem *)TX3927_PIO_REG)
 
-#endif /* __ASM_TX3927_H */
+#endif /* __ASM_TXX9_TX3927_H */
similarity index 99%
rename from include/asm-mips/tx4927/tx4927.h
rename to include/asm-mips/txx9/tx4927.h
index 1d4816f3266f72439c24e90c9fa24f62009f962f..f21a7b1831e5eac474c394b2acf5c3416124dff1 100644 (file)
@@ -24,8 +24,8 @@
  *  with this program; if not, write to the Free Software Foundation, Inc.,
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#ifndef __ASM_TX4927_TX4927_H
-#define __ASM_TX4927_TX4927_H
+#ifndef __ASM_TXX9_TX4927_H
+#define __ASM_TXX9_TX4927_H
 
 #include <asm/txx9irq.h>
 
@@ -277,4 +277,4 @@ struct tx4927_pcic_reg {
 
 #endif /* _LANGUAGE_ASSEMBLY */
 
-#endif /* __ASM_TX4927_TX4927_H */
+#endif /* __ASM_TXX9_TX4927_H */
similarity index 99%
rename from include/asm-mips/tx4938/tx4938.h
rename to include/asm-mips/txx9/tx4938.h
index e8807f5c61e9bb2ee012a90f775950208cd64373..7f9cfef1c6d29fa1eed3cf090f18b55bf236bcff 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * linux/include/asm-mips/tx4938/tx4938.h
  * Definitions for TX4937/TX4938
  * Copyright (C) 2000-2001 Toshiba Corporation
  *
@@ -10,8 +9,8 @@
  *
  * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
  */
-#ifndef __ASM_TX_BOARDS_TX4938_H
-#define __ASM_TX_BOARDS_TX4938_H
+#ifndef __ASM_TXX9_TX4938_H
+#define __ASM_TXX9_TX4938_H
 
 #define tx4938_read_nfmc(addr) (*(volatile unsigned int *)(addr))
 #define tx4938_write_nfmc(b, addr) (*(volatile unsigned int *)(addr)) = (b)
similarity index 97%
rename from include/asm-mips/jmr3927/txx927.h
rename to include/asm-mips/txx9/txx927.h
index 25dcf2feb0952b5dfa1c7589c894831647f3e99c..97dd7ad1a89066097731bd263f3221568ff36263 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Copyright (C) 2000 Toshiba Corporation
  */
-#ifndef __ASM_TXX927_H
-#define __ASM_TXX927_H
+#ifndef __ASM_TXX9_TXX927_H
+#define __ASM_TXX9_TXX927_H
 
 struct txx927_sio_reg {
        volatile unsigned long lcr;
@@ -118,4 +118,4 @@ struct txx927_sio_reg {
  * PIO
  */
 
-#endif /* __ASM_TXX927_H */
+#endif /* __ASM_TXX9_TXX927_H */