diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-02-28 14:15:43 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-07-26 10:09:58 -0400 |
commit | c04dc9a6bfe88b8c15bf8dd298fc24d6b9df3f22 (patch) | |
tree | 31710d95a5f232ef04f1a51b69f8288cfbec325e /arch/arm/mach-shark/pci.c | |
parent | 29d396047939c559dc1fd42f2d43fd6006082b07 (diff) |
ARM: shark: use fixed PCI i/o mapping
Convert shark to use the fixed i/o mapping and remove io.h.
This shrinks the mapping from 256MB to 1MB, but nothing is using that much
space AFAICT.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-shark/pci.c')
-rw-r--r-- | arch/arm/mach-shark/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-shark/pci.c b/arch/arm/mach-shark/pci.c index 9089407d5326..b8b4ab323a3e 100644 --- a/arch/arm/mach-shark/pci.c +++ b/arch/arm/mach-shark/pci.c | |||
@@ -8,12 +8,15 @@ | |||
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/pci.h> | 9 | #include <linux/pci.h> |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/io.h> | ||
11 | #include <video/vga.h> | 12 | #include <video/vga.h> |
12 | 13 | ||
13 | #include <asm/irq.h> | 14 | #include <asm/irq.h> |
14 | #include <asm/mach/pci.h> | 15 | #include <asm/mach/pci.h> |
15 | #include <asm/mach-types.h> | 16 | #include <asm/mach-types.h> |
16 | 17 | ||
18 | #define IO_START 0x40000000 | ||
19 | |||
17 | static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 20 | static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
18 | { | 21 | { |
19 | if (dev->bus->number == 0) | 22 | if (dev->bus->number == 0) |
@@ -44,6 +47,8 @@ static int __init shark_pci_init(void) | |||
44 | pcibios_min_mem = 0x50000000; | 47 | pcibios_min_mem = 0x50000000; |
45 | vga_base = 0xe8000000; | 48 | vga_base = 0xe8000000; |
46 | 49 | ||
50 | pci_ioremap_io(0, IO_START); | ||
51 | |||
47 | pci_common_init(&shark_pci); | 52 | pci_common_init(&shark_pci); |
48 | 53 | ||
49 | return 0; | 54 | return 0; |