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 /arch/mips/pci | |
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 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/Makefile | 9 | ||||
-rw-r--r-- | arch/mips/pci/fixup-jmr3927.c | 8 | ||||
-rw-r--r-- | arch/mips/pci/fixup-rbtx4927.c | 8 | ||||
-rw-r--r-- | arch/mips/pci/fixup-rbtx4938.c | 11 |
4 files changed, 8 insertions, 28 deletions
diff --git a/arch/mips/pci/Makefile b/arch/mips/pci/Makefile index 908764878ac8..875b643438c0 100644 --- a/arch/mips/pci/Makefile +++ b/arch/mips/pci/Makefile | |||
@@ -11,11 +11,10 @@ obj-$(CONFIG_MIPS_BONITO64) += ops-bonito64.o | |||
11 | obj-$(CONFIG_PCI_GT64XXX_PCI0) += ops-gt64xxx_pci0.o | 11 | obj-$(CONFIG_PCI_GT64XXX_PCI0) += ops-gt64xxx_pci0.o |
12 | obj-$(CONFIG_MIPS_MSC) += ops-msc.o | 12 | obj-$(CONFIG_MIPS_MSC) += ops-msc.o |
13 | obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o | 13 | obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o |
14 | obj-$(CONFIG_MIPS_TX3927) += ops-tx3927.o | 14 | obj-$(CONFIG_SOC_TX3927) += ops-tx3927.o |
15 | obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o | 15 | obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o |
16 | obj-$(CONFIG_NEC_CMBVR4133) += fixup-vr4133.o | 16 | obj-$(CONFIG_NEC_CMBVR4133) += fixup-vr4133.o |
17 | obj-$(CONFIG_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o | 17 | obj-$(CONFIG_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o |
18 | obj-$(CONFIG_PCI_TX3927) += ops-tx3927.o | ||
19 | obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o | 18 | obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o |
20 | 19 | ||
21 | # | 20 | # |
@@ -44,8 +43,10 @@ obj-$(CONFIG_TANBAC_TB0219) += fixup-tb0219.o | |||
44 | obj-$(CONFIG_TANBAC_TB0226) += fixup-tb0226.o | 43 | obj-$(CONFIG_TANBAC_TB0226) += fixup-tb0226.o |
45 | obj-$(CONFIG_TANBAC_TB0287) += fixup-tb0287.o | 44 | obj-$(CONFIG_TANBAC_TB0287) += fixup-tb0287.o |
46 | obj-$(CONFIG_TOSHIBA_JMR3927) += fixup-jmr3927.o | 45 | obj-$(CONFIG_TOSHIBA_JMR3927) += fixup-jmr3927.o |
47 | obj-$(CONFIG_TOSHIBA_RBTX4927) += fixup-rbtx4927.o pci-tx4927.o pci-tx4938.o | 46 | obj-$(CONFIG_SOC_TX4927) += pci-tx4927.o |
48 | obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-rbtx4938.o pci-tx4938.o | 47 | obj-$(CONFIG_SOC_TX4938) += pci-tx4938.o |
48 | obj-$(CONFIG_TOSHIBA_RBTX4927) += fixup-rbtx4927.o | ||
49 | obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-rbtx4938.o | ||
49 | obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o | 50 | obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o |
50 | obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o | 51 | obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o |
51 | obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o | 52 | obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o |
diff --git a/arch/mips/pci/fixup-jmr3927.c b/arch/mips/pci/fixup-jmr3927.c index d5edaf21e088..0f1069527cba 100644 --- a/arch/mips/pci/fixup-jmr3927.c +++ b/arch/mips/pci/fixup-jmr3927.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <asm/txx9/pci.h> | 31 | #include <asm/txx9/pci.h> |
32 | #include <asm/txx9/jmr3927.h> | 32 | #include <asm/txx9/jmr3927.h> |
33 | 33 | ||
34 | int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 34 | int __init jmr3927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
35 | { | 35 | { |
36 | unsigned char irq = pin; | 36 | unsigned char irq = pin; |
37 | 37 | ||
@@ -77,9 +77,3 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | |||
77 | irq = JMR3927_IRQ_ETHER0; | 77 | irq = JMR3927_IRQ_ETHER0; |
78 | return irq; | 78 | return irq; |
79 | } | 79 | } |
80 | |||
81 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
82 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
83 | { | ||
84 | return 0; | ||
85 | } | ||
diff --git a/arch/mips/pci/fixup-rbtx4927.c b/arch/mips/pci/fixup-rbtx4927.c index abab4852d158..321db265829c 100644 --- a/arch/mips/pci/fixup-rbtx4927.c +++ b/arch/mips/pci/fixup-rbtx4927.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <asm/txx9/pci.h> | 36 | #include <asm/txx9/pci.h> |
37 | #include <asm/txx9/rbtx4927.h> | 37 | #include <asm/txx9/rbtx4927.h> |
38 | 38 | ||
39 | int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 39 | int __init rbtx4927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
40 | { | 40 | { |
41 | unsigned char irq = pin; | 41 | unsigned char irq = pin; |
42 | 42 | ||
@@ -71,9 +71,3 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | |||
71 | } | 71 | } |
72 | return irq; | 72 | return irq; |
73 | } | 73 | } |
74 | |||
75 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
76 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
77 | { | ||
78 | return 0; | ||
79 | } | ||
diff --git a/arch/mips/pci/fixup-rbtx4938.c b/arch/mips/pci/fixup-rbtx4938.c index 39c995830384..a80579af609b 100644 --- a/arch/mips/pci/fixup-rbtx4938.c +++ b/arch/mips/pci/fixup-rbtx4938.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <asm/txx9/pci.h> | 13 | #include <asm/txx9/pci.h> |
14 | #include <asm/txx9/rbtx4938.h> | 14 | #include <asm/txx9/rbtx4938.h> |
15 | 15 | ||
16 | int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 16 | int __init rbtx4938_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
17 | { | 17 | { |
18 | int irq = tx4938_pcic1_map_irq(dev, slot); | 18 | int irq = tx4938_pcic1_map_irq(dev, slot); |
19 | 19 | ||
@@ -51,12 +51,3 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | |||
51 | } | 51 | } |
52 | return irq; | 52 | return irq; |
53 | } | 53 | } |
54 | |||
55 | /* | ||
56 | * Do platform specific device initialization at pci_enable_device() time | ||
57 | */ | ||
58 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
59 | { | ||
60 | return 0; | ||
61 | } | ||
62 | |||