diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 04:07:47 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 04:07:47 -0400 |
commit | ab1363a8929f32cc163cd3f50ca72f20d901b00c (patch) | |
tree | 72412ce4de97e21559d0055b339bbfd6f344c10d /arch/sh/drivers/pci/ops-r7780rp.c | |
parent | f1dcab756687622b658154ded1657538984edcdb (diff) |
sh: pci: Consolidate PCI I/O and mem window definitions for SH7780.
This consolidates all of the PCI I/O and memory window definitions across
the pci-sh7780 users in pci-sh7780 itself. No functional changes, in that
every platform had exactly the same implementation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/ops-r7780rp.c')
-rw-r--r-- | arch/sh/drivers/pci/ops-r7780rp.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/sh/drivers/pci/ops-r7780rp.c b/arch/sh/drivers/pci/ops-r7780rp.c index 8ec6d225ef9d..044525df18c5 100644 --- a/arch/sh/drivers/pci/ops-r7780rp.c +++ b/arch/sh/drivers/pci/ops-r7780rp.c | |||
@@ -26,27 +26,6 @@ int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | |||
26 | return irq_tab[slot]; | 26 | return irq_tab[slot]; |
27 | } | 27 | } |
28 | 28 | ||
29 | static struct resource sh7780_io_resource = { | ||
30 | .name = "SH7780_IO", | ||
31 | .start = SH7780_PCI_IO_BASE, | ||
32 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
33 | .flags = IORESOURCE_IO | ||
34 | }; | ||
35 | |||
36 | static struct resource sh7780_mem_resource = { | ||
37 | .name = "SH7780_mem", | ||
38 | .start = SH7780_PCI_MEMORY_BASE, | ||
39 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
40 | .flags = IORESOURCE_MEM | ||
41 | }; | ||
42 | |||
43 | extern struct pci_ops sh7780_pci_ops; | ||
44 | |||
45 | struct pci_channel board_pci_channels[] = { | ||
46 | { sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff }, | ||
47 | { NULL, NULL, NULL, 0, 0 }, | ||
48 | }; | ||
49 | |||
50 | static struct sh4_pci_address_map sh7780_pci_map = { | 29 | static struct sh4_pci_address_map sh7780_pci_map = { |
51 | .window0 = { | 30 | .window0 = { |
52 | .base = SH7780_CS2_BASE_ADDR, | 31 | .base = SH7780_CS2_BASE_ADDR, |
@@ -61,5 +40,5 @@ static struct sh4_pci_address_map sh7780_pci_map = { | |||
61 | 40 | ||
62 | int __init pcibios_init_platform(void) | 41 | int __init pcibios_init_platform(void) |
63 | { | 42 | { |
64 | return sh7780_pcic_init(&board_pci_channels[0], &sh7780_pci_map); | 43 | return sh7780_pcic_init(&sh7780_pci_map); |
65 | } | 44 | } |