diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-07-11 10:27:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-15 13:44:35 -0400 |
commit | edcaf1a6a77315562e9781245cc8e028c9a921dc (patch) | |
tree | a20a0a85071fa283c36db87a41d1a7e091a35781 /include/asm-mips/txx9/rbtx4927.h | |
parent | 766891565bdaf605ea4aebe3e75de77e848254d0 (diff) |
[MIPS] TXx9: Make single kernel can support multiple boards
Make single kernel can be used on RBTX4927/37/38. Also make
some SoC-specific code independent from board-specific code.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/txx9/rbtx4927.h')
-rw-r--r-- | include/asm-mips/txx9/rbtx4927.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/asm-mips/txx9/rbtx4927.h b/include/asm-mips/txx9/rbtx4927.h index 5b6f488b1b3c..bf194589216f 100644 --- a/include/asm-mips/txx9/rbtx4927.h +++ b/include/asm-mips/txx9/rbtx4927.h | |||
@@ -46,12 +46,16 @@ | |||
46 | #define RBTX4927_INTF_PCIB (1 << RBTX4927_INTB_PCIB) | 46 | #define RBTX4927_INTF_PCIB (1 << RBTX4927_INTB_PCIB) |
47 | #define RBTX4927_INTF_PCIA (1 << RBTX4927_INTB_PCIA) | 47 | #define RBTX4927_INTF_PCIA (1 << RBTX4927_INTB_PCIA) |
48 | 48 | ||
49 | #define RBTX4927_IRQ_IOC (TX4927_IRQ_PIC_BEG + TX4927_NUM_IR) | 49 | #define RBTX4927_NR_IRQ_IOC 8 /* IOC */ |
50 | |||
51 | #define RBTX4927_IRQ_IOC (TXX9_IRQ_BASE + TX4927_NUM_IR) | ||
50 | #define RBTX4927_IRQ_IOC_PCID (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCID) | 52 | #define RBTX4927_IRQ_IOC_PCID (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCID) |
51 | #define RBTX4927_IRQ_IOC_PCIC (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIC) | 53 | #define RBTX4927_IRQ_IOC_PCIC (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIC) |
52 | #define RBTX4927_IRQ_IOC_PCIB (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIB) | 54 | #define RBTX4927_IRQ_IOC_PCIB (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIB) |
53 | #define RBTX4927_IRQ_IOC_PCIA (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIA) | 55 | #define RBTX4927_IRQ_IOC_PCIA (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIA) |
54 | 56 | ||
57 | #define RBTX4927_IRQ_IOCINT (TXX9_IRQ_BASE + TX4927_IR_INT(1)) | ||
58 | |||
55 | #ifdef CONFIG_PCI | 59 | #ifdef CONFIG_PCI |
56 | #define RBTX4927_ISA_IO_OFFSET RBTX4927_PCIIO | 60 | #define RBTX4927_ISA_IO_OFFSET RBTX4927_PCIIO |
57 | #else | 61 | #else |
@@ -65,8 +69,11 @@ | |||
65 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 | 69 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 |
66 | 70 | ||
67 | #define RBTX4927_RTL_8019_BASE (0x1c020280 - RBTX4927_ISA_IO_OFFSET) | 71 | #define RBTX4927_RTL_8019_BASE (0x1c020280 - RBTX4927_ISA_IO_OFFSET) |
68 | #define RBTX4927_RTL_8019_IRQ (TX4927_IRQ_PIC_BEG + 5) | 72 | #define RBTX4927_RTL_8019_IRQ (TXX9_IRQ_BASE + TX4927_IR_INT(3)) |
69 | 73 | ||
70 | int toshiba_rbtx4927_irq_nested(int sw_irq); | 74 | void rbtx4927_prom_init(void); |
75 | void rbtx4927_irq_setup(void); | ||
76 | struct pci_dev; | ||
77 | int rbtx4927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); | ||
71 | 78 | ||
72 | #endif /* __ASM_TXX9_RBTX4927_H */ | 79 | #endif /* __ASM_TXX9_RBTX4927_H */ |