diff options
author | Rob Herring <rob.herring@calxeda.com> | 2011-06-28 22:22:40 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2011-07-12 12:19:29 -0400 |
commit | cc22b4c18540e5e8bf55c7d124044f9317527d3c (patch) | |
tree | 77b9980c1824fd389105efe7e7f9693c9c258ad9 /arch/arm/mach-orion5x | |
parent | c9d95fbe59e426eed7f16e7cac812e46ac4772d0 (diff) |
ARM: set vga memory base at run-time
Convert the incorrectly named PCIMEM_BASE to a variable called vga_base.
This removes the dependency on mach/hardware.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/include/mach/hardware.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/pci.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-orion5x/include/mach/hardware.h b/arch/arm/mach-orion5x/include/mach/hardware.h index b6d55bc3b2f8..395735482473 100644 --- a/arch/arm/mach-orion5x/include/mach/hardware.h +++ b/arch/arm/mach-orion5x/include/mach/hardware.h | |||
@@ -11,7 +11,4 @@ | |||
11 | 11 | ||
12 | #include "orion5x.h" | 12 | #include "orion5x.h" |
13 | 13 | ||
14 | #define PCIMEM_BASE ORION5X_PCIE_MEM_PHYS_BASE | ||
15 | |||
16 | |||
17 | #endif | 14 | #endif |
diff --git a/arch/arm/mach-orion5x/pci.c b/arch/arm/mach-orion5x/pci.c index e8706f15a670..f64965d4f8e8 100644 --- a/arch/arm/mach-orion5x/pci.c +++ b/arch/arm/mach-orion5x/pci.c | |||
@@ -560,6 +560,8 @@ int __init orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys) | |||
560 | { | 560 | { |
561 | int ret = 0; | 561 | int ret = 0; |
562 | 562 | ||
563 | vga_base = ORION5X_PCIE_MEM_PHYS_BASE; | ||
564 | |||
563 | if (nr == 0) { | 565 | if (nr == 0) { |
564 | orion_pcie_set_local_bus_nr(PCIE_BASE, sys->busnr); | 566 | orion_pcie_set_local_bus_nr(PCIE_BASE, sys->busnr); |
565 | ret = pcie_setup(sys); | 567 | ret = pcie_setup(sys); |