mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
[MIPS] TXx9: Reorganize code
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>
This commit is contained in:
committed by
Ralf Baechle
parent
14476007c9
commit
22b1d707ff
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# Makefile for the common code of TOSHIBA JMR-TX3927 board
|
||||
#
|
||||
|
||||
obj-y += prom.o puts.o
|
||||
|
||||
EXTRA_CFLAGS += -Werror
|
||||
@@ -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');
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
config TOSHIBA_FPCIB0
|
||||
bool "FPCIB0 Backplane Support"
|
||||
depends on TOSHIBA_RBTX4927
|
||||
@@ -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
|
||||
@@ -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));
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1,3 +1,7 @@
|
||||
config TOSHIBA_FPCIB0
|
||||
bool "FPCIB0 Backplane Support"
|
||||
depends on TOSHIBA_RBTX4927
|
||||
|
||||
if TOSHIBA_RBTX4938
|
||||
|
||||
comment "Multiplex Pin Select"
|
||||
10
arch/mips/txx9/generic/Makefile
Normal file
10
arch/mips/txx9/generic/Makefile
Normal file
@@ -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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user