diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-07-13 17:27:22 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-07-26 10:09:57 -0400 |
commit | 68ef63227b131a83732753f9fcd258319c37c1c3 (patch) | |
tree | 6008795f34f7644ae227da4931c841e34e9d32d3 /arch/arm/mach-integrator/integrator_ap.c | |
parent | d94c7a04b84e825b7cdeb112a11935ec0e70afd7 (diff) |
ARM: integrator: use fixed PCI i/o mapping
Move integrator PCI to fixed i/o mapping and remove io.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-integrator/integrator_ap.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index c857501c578..fd3bdf8f722 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <asm/mach/arch.h> | 49 | #include <asm/mach/arch.h> |
50 | #include <asm/mach/irq.h> | 50 | #include <asm/mach/irq.h> |
51 | #include <asm/mach/map.h> | 51 | #include <asm/mach/map.h> |
52 | #include <asm/mach/pci.h> | ||
52 | #include <asm/mach/time.h> | 53 | #include <asm/mach/time.h> |
53 | 54 | ||
54 | #include <plat/fpga-irq.h> | 55 | #include <plat/fpga-irq.h> |
@@ -72,7 +73,7 @@ | |||
72 | * e8000000 40000000 PCI memory PHYS_PCI_MEM_BASE (max 512M) | 73 | * e8000000 40000000 PCI memory PHYS_PCI_MEM_BASE (max 512M) |
73 | * ec000000 61000000 PCI config space PHYS_PCI_CONFIG_BASE (max 16M) | 74 | * ec000000 61000000 PCI config space PHYS_PCI_CONFIG_BASE (max 16M) |
74 | * ed000000 62000000 PCI V3 regs PHYS_PCI_V3_BASE (max 64k) | 75 | * ed000000 62000000 PCI V3 regs PHYS_PCI_V3_BASE (max 64k) |
75 | * ee000000 60000000 PCI IO PHYS_PCI_IO_BASE (max 16M) | 76 | * fee00000 60000000 PCI IO PHYS_PCI_IO_BASE (max 16M) |
76 | * ef000000 Cache flush | 77 | * ef000000 Cache flush |
77 | * f1000000 10000000 Core module registers | 78 | * f1000000 10000000 Core module registers |
78 | * f1100000 11000000 System controller registers | 79 | * f1100000 11000000 System controller registers |
@@ -146,11 +147,6 @@ static struct map_desc ap_io_desc[] __initdata = { | |||
146 | .pfn = __phys_to_pfn(PHYS_PCI_V3_BASE), | 147 | .pfn = __phys_to_pfn(PHYS_PCI_V3_BASE), |
147 | .length = SZ_64K, | 148 | .length = SZ_64K, |
148 | .type = MT_DEVICE | 149 | .type = MT_DEVICE |
149 | }, { | ||
150 | .virtual = PCI_IO_VADDR, | ||
151 | .pfn = __phys_to_pfn(PHYS_PCI_IO_BASE), | ||
152 | .length = SZ_64K, | ||
153 | .type = MT_DEVICE | ||
154 | } | 150 | } |
155 | }; | 151 | }; |
156 | 152 | ||
@@ -158,6 +154,7 @@ static void __init ap_map_io(void) | |||
158 | { | 154 | { |
159 | iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); | 155 | iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); |
160 | vga_base = PCI_MEMORY_VADDR; | 156 | vga_base = PCI_MEMORY_VADDR; |
157 | pci_map_io_early(__phys_to_pfn(PHYS_PCI_IO_BASE)); | ||
161 | } | 158 | } |
162 | 159 | ||
163 | #define INTEGRATOR_SC_VALID_INT 0x003fffff | 160 | #define INTEGRATOR_SC_VALID_INT 0x003fffff |