Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932102Ab1F2QsC (ORCPT ); Wed, 29 Jun 2011 12:48:02 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:47081 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757439Ab1F2Qrz (ORCPT ); Wed, 29 Jun 2011 12:47:55 -0400 From: Rob Herring To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michal Simek , nico@fluxnic.net, Rob Herring Subject: [PATCH 6/6] ARM: set vga memory base at run-time Date: Wed, 29 Jun 2011 11:46:59 -0500 Message-Id: <1309366019-24379-7-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1309366019-24379-1-git-send-email-robherring2@gmail.com> References: <1309366019-24379-1-git-send-email-robherring2@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8662 Lines: 264 From: Rob Herring 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 Acked-by: Nicolas Pitre --- arch/arm/include/asm/vga.h | 5 +++-- arch/arm/mach-dove/include/mach/hardware.h | 3 --- arch/arm/mach-dove/pcie.c | 3 +++ arch/arm/mach-footbridge/dc21285.c | 1 + arch/arm/mach-integrator/include/mach/hardware.h | 2 -- arch/arm/mach-integrator/pci_v3.c | 2 ++ arch/arm/mach-kirkwood/include/mach/hardware.h | 3 --- arch/arm/mach-kirkwood/pcie.c | 2 ++ arch/arm/mach-mv78xx0/include/mach/hardware.h | 3 --- arch/arm/mach-mv78xx0/pcie.c | 2 ++ arch/arm/mach-orion5x/include/mach/hardware.h | 3 --- arch/arm/mach-orion5x/pci.c | 1 + arch/arm/mach-shark/include/mach/hardware.h | 2 -- arch/arm/mach-shark/pci.c | 2 ++ arch/arm/mm/iomap.c | 3 +++ 15 files changed, 19 insertions(+), 18 deletions(-) diff --git a/arch/arm/include/asm/vga.h b/arch/arm/include/asm/vga.h index 250a4dd..91f4021 100644 --- a/arch/arm/include/asm/vga.h +++ b/arch/arm/include/asm/vga.h @@ -2,9 +2,10 @@ #define ASMARM_VGA_H #include -#include -#define VGA_MAP_MEM(x,s) (PCIMEM_BASE + (x)) +extern unsigned long vga_base; + +#define VGA_MAP_MEM(x,s) (vga_base + (x)) #define vga_readb(x) (*((volatile unsigned char *)x)) #define vga_writeb(x,y) (*((volatile unsigned char *)y) = (x)) diff --git a/arch/arm/mach-dove/include/mach/hardware.h b/arch/arm/mach-dove/include/mach/hardware.h index 94c5a2c..f1368b9 100644 --- a/arch/arm/mach-dove/include/mach/hardware.h +++ b/arch/arm/mach-dove/include/mach/hardware.h @@ -11,9 +11,6 @@ #include "dove.h" -#define PCIMEM_BASE DOVE_PCIE0_MEM_PHYS_BASE - - /* Macros below are required for compatibility with PXA AC'97 driver. */ #define __REG(x) (*((volatile u32 *)((x) - DOVE_SB_REGS_PHYS_BASE + \ DOVE_SB_REGS_VIRT_BASE))) diff --git a/arch/arm/mach-dove/pcie.c b/arch/arm/mach-dove/pcie.c index 4810426..021579a 100644 --- a/arch/arm/mach-dove/pcie.c +++ b/arch/arm/mach-dove/pcie.c @@ -11,6 +11,7 @@ #include #include #include +#include