mach-integrator: fix VGA base regression

The changes introduced in commit
cc22b4c18540e5e8bf55c7d124044f9317527d3c
"ARM: set vga memory base at run-time"

Makes the Integrator/AP freeze completely. I appears that
this is due to the VGA base address being assigned at PCI
init time, while this base is needed earlier than that.
Moving the initialization of the base address to the
.map_io function solves this problem.

Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by Linus Walleij and committed by Arnd Bergmann b71d8429 a0638eb6

+2 -2
+2
arch/arm/mach-integrator/integrator_ap.c
··· 32 #include <linux/interrupt.h> 33 #include <linux/io.h> 34 #include <linux/mtd/physmap.h> 35 36 #include <mach/hardware.h> 37 #include <mach/platform.h> ··· 155 static void __init ap_map_io(void) 156 { 157 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); 158 } 159 160 #define INTEGRATOR_SC_VALID_INT 0x003fffff
··· 32 #include <linux/interrupt.h> 33 #include <linux/io.h> 34 #include <linux/mtd/physmap.h> 35 + #include <video/vga.h> 36 37 #include <mach/hardware.h> 38 #include <mach/platform.h> ··· 154 static void __init ap_map_io(void) 155 { 156 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); 157 + vga_base = PCI_MEMORY_VADDR; 158 } 159 160 #define INTEGRATOR_SC_VALID_INT 0x003fffff
-2
arch/arm/mach-integrator/pci_v3.c
··· 27 #include <linux/spinlock.h> 28 #include <linux/init.h> 29 #include <linux/io.h> 30 - #include <video/vga.h> 31 32 #include <mach/hardware.h> 33 #include <mach/platform.h> ··· 504 505 pcibios_min_io = 0x6000; 506 pcibios_min_mem = 0x00100000; 507 - vga_base = PCI_MEMORY_VADDR; 508 509 /* 510 * Hook in our fault handler for PCI errors
··· 27 #include <linux/spinlock.h> 28 #include <linux/init.h> 29 #include <linux/io.h> 30 31 #include <mach/hardware.h> 32 #include <mach/platform.h> ··· 505 506 pcibios_min_io = 0x6000; 507 pcibios_min_mem = 0x00100000; 508 509 /* 510 * Hook in our fault handler for PCI errors