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-sdk7780.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-sdk7780.c')
-rw-r--r-- | arch/sh/drivers/pci/ops-sdk7780.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/sh/drivers/pci/ops-sdk7780.c b/arch/sh/drivers/pci/ops-sdk7780.c index 6a0b7c067831..570fd71f6937 100644 --- a/arch/sh/drivers/pci/ops-sdk7780.c +++ b/arch/sh/drivers/pci/ops-sdk7780.c | |||
@@ -34,25 +34,6 @@ int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | |||
34 | return sdk7780_irq_tab[pin-1][slot]; | 34 | return sdk7780_irq_tab[pin-1][slot]; |
35 | } | 35 | } |
36 | 36 | ||
37 | static struct resource sdk7780_io_resource = { | ||
38 | .name = "SH7780_IO", | ||
39 | .start = SH7780_PCI_IO_BASE, | ||
40 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
41 | .flags = IORESOURCE_IO | ||
42 | }; | ||
43 | |||
44 | static struct resource sdk7780_mem_resource = { | ||
45 | .name = "SH7780_mem", | ||
46 | .start = SH7780_PCI_MEMORY_BASE, | ||
47 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
48 | .flags = IORESOURCE_MEM | ||
49 | }; | ||
50 | |||
51 | struct pci_channel board_pci_channels[] = { | ||
52 | { sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff }, | ||
53 | { NULL, NULL, NULL, 0, 0 }, | ||
54 | }; | ||
55 | |||
56 | static struct sh4_pci_address_map sdk7780_pci_map = { | 37 | static struct sh4_pci_address_map sdk7780_pci_map = { |
57 | .window0 = { | 38 | .window0 = { |
58 | .base = SH7780_CS2_BASE_ADDR, | 39 | .base = SH7780_CS2_BASE_ADDR, |
@@ -67,5 +48,5 @@ static struct sh4_pci_address_map sdk7780_pci_map = { | |||
67 | int __init pcibios_init_platform(void) | 48 | int __init pcibios_init_platform(void) |
68 | { | 49 | { |
69 | printk(KERN_INFO "SH7780 PCI: Finished initializing PCI controller\n"); | 50 | printk(KERN_INFO "SH7780 PCI: Finished initializing PCI controller\n"); |
70 | return sh7780_pcic_init(&board_pci_channels[0], &sdk7780_pci_map); | 51 | return sh7780_pcic_init(&sdk7780_pci_map); |
71 | } | 52 | } |