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-sh7785lcr.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-sh7785lcr.c')
-rw-r--r-- | arch/sh/drivers/pci/ops-sh7785lcr.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/sh/drivers/pci/ops-sh7785lcr.c b/arch/sh/drivers/pci/ops-sh7785lcr.c index ab0d1decf2df..bac46b5d1580 100644 --- a/arch/sh/drivers/pci/ops-sh7785lcr.c +++ b/arch/sh/drivers/pci/ops-sh7785lcr.c | |||
@@ -26,25 +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 sh7785_io_resource = { | ||
30 | .name = "SH7785_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 sh7785_mem_resource = { | ||
37 | .name = "SH7785_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 | struct pci_channel board_pci_channels[] = { | ||
44 | { sh7780_pci_init, &sh4_pci_ops, &sh7785_io_resource, &sh7785_mem_resource, 0, 0xff }, | ||
45 | { NULL, NULL, NULL, 0, 0 }, | ||
46 | }; | ||
47 | |||
48 | static struct sh4_pci_address_map sh7785_pci_map = { | 29 | static struct sh4_pci_address_map sh7785_pci_map = { |
49 | .window0 = { | 30 | .window0 = { |
50 | #if defined(CONFIG_32BIT) | 31 | #if defined(CONFIG_32BIT) |
@@ -59,5 +40,5 @@ static struct sh4_pci_address_map sh7785_pci_map = { | |||
59 | 40 | ||
60 | int __init pcibios_init_platform(void) | 41 | int __init pcibios_init_platform(void) |
61 | { | 42 | { |
62 | return sh7780_pcic_init(&board_pci_channels[0], &sh7785_pci_map); | 43 | return sh7780_pcic_init(&sh7785_pci_map); |
63 | } | 44 | } |