aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-03-16 17:03:41 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-06-03 02:04:40 -0400
commit01ef31053ddda5d5aee86dca61193d1395273d53 (patch)
tree47a14b66449b85526bb5ac2dd453d7ac69e2e3ff
parenta5ecbab7d9b606bdfbec67ccda0fde0f82e1e70e (diff)
ARM: integrator: move VGA base assignment
The global vga_base is used for things like getting an early console on a PCI-based VGA adapter. Move this assignment into the probe function for the PCI bridge. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/mach-integrator/integrator_ap.c2
-rw-r--r--arch/arm/mach-integrator/pci_v3.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c
index 8db3799e8ec6..6375657493d0 100644
--- a/arch/arm/mach-integrator/integrator_ap.c
+++ b/arch/arm/mach-integrator/integrator_ap.c
@@ -41,7 +41,6 @@
41#include <linux/stat.h> 41#include <linux/stat.h>
42#include <linux/sys_soc.h> 42#include <linux/sys_soc.h>
43#include <linux/termios.h> 43#include <linux/termios.h>
44#include <video/vga.h>
45 44
46#include <mach/hardware.h> 45#include <mach/hardware.h>
47#include <mach/platform.h> 46#include <mach/platform.h>
@@ -145,7 +144,6 @@ static struct map_desc ap_io_desc[] __initdata __maybe_unused = {
145static void __init ap_map_io(void) 144static void __init ap_map_io(void)
146{ 145{
147 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); 146 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc));
148 vga_base = (unsigned long)PCI_MEMORY_VADDR;
149 pci_map_io_early(__phys_to_pfn(PHYS_PCI_IO_BASE)); 147 pci_map_io_early(__phys_to_pfn(PHYS_PCI_IO_BASE));
150} 148}
151 149
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c
index 9dd7125e658f..059ac4e8a67e 100644
--- a/arch/arm/mach-integrator/pci_v3.c
+++ b/arch/arm/mach-integrator/pci_v3.c
@@ -28,6 +28,7 @@
28#include <linux/init.h> 28#include <linux/init.h>
29#include <linux/io.h> 29#include <linux/io.h>
30#include <linux/platform_device.h> 30#include <linux/platform_device.h>
31#include <video/vga.h>
31 32
32#include <mach/hardware.h> 33#include <mach/hardware.h>
33#include <mach/platform.h> 34#include <mach/platform.h>
@@ -850,6 +851,7 @@ static int __init pci_v3_probe(struct platform_device *pdev)
850 return -ENODEV; 851 return -ENODEV;
851 } 852 }
852 853
854 vga_base = (unsigned long)PCI_MEMORY_VADDR;
853 pci_common_init(&pci_v3); 855 pci_common_init(&pci_v3);
854 856
855 return 0; 857 return 0;