mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04: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:
parent
14476007c9
commit
22b1d707ff
49 changed files with 104 additions and 217 deletions
|
|
@ -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>
|
||||
|
|
@ -174,4 +174,4 @@
|
|||
* INT[3:0]
|
||||
*/
|
||||
|
||||
#endif /* __ASM_TX3927_JMR3927_H */
|
||||
#endif /* __ASM_TXX9_JMR3927_H */
|
||||
|
|
@ -24,10 +24,10 @@
|
|||
* 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 */
|
||||
|
|
@ -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 */
|
||||
|
|
@ -165,4 +164,4 @@
|
|||
#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 */
|
||||
|
|
@ -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
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
* linux/include/asm-mips/tx4938/spi.h
|
||||
* Definitions for TX4937/TX4938 SPI
|
||||
*
|
||||
* Copyright (C) 2000-2001 Toshiba Corporation
|
||||
|
|
@ -11,10 +10,10 @@
|
|||
*
|
||||
* 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 */
|
||||
|
|
@ -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 */
|
||||
|
|
@ -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 */
|
||||
|
|
@ -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)
|
||||
|
|
@ -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 */
|
||||
Loading…
Reference in a new issue