summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shark/pci.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-02-28 23:15:43 +0400
committerRob Herring <rob.herring@calxeda.com>2012-07-26 18:09:58 +0400
commitc04dc9a6bfe88b8c15bf8dd298fc24d6b9df3f22 (patch)
tree31710d95a5f232ef04f1a51b69f8288cfbec325e /arch/arm/mach-shark/pci.c
parent29d396047939c559dc1fd42f2d43fd6006082b07 (diff)
downloadlinux-c04dc9a6bfe88b8c15bf8dd298fc24d6b9df3f22.tar.xz
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.c5
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 @@
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
+#include <linux/io.h>
#include <video/vga.h>
#include <asm/irq.h>
#include <asm/mach/pci.h>
#include <asm/mach-types.h>
+#define IO_START 0x40000000
+
static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (dev->bus->number == 0)
@@ -44,6 +47,8 @@ static int __init shark_pci_init(void)
pcibios_min_mem = 0x50000000;
vga_base = 0xe8000000;
+ pci_ioremap_io(0, IO_START);
+
pci_common_init(&shark_pci);
return 0;