From: Jarkko Nikula Subject: Re: [PATCH RESEND 0/4] Runtime constants: define (some) OMAP address bases at runtime rather than compile time for multiboot Date: Wed, 21 Nov 2007 09:03:39 +0200 Message-ID: <20071121090339.4f256297.jarkko.nikula@nokia.com> References: <20071121001620.571082090@pwsan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071121001620.571082090@pwsan.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: ext Paul Walmsley Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org On Tue, 20 Nov 2007 17:16:20 -0700 "ext Paul Walmsley" wrote: > So, convert the users of these defines to use runtime-computed global > variables where possible. Where not possible (e.g., in static > initializers), use chip-specific preprocessor macros. The global > variables are set up early in the board-*.c files in the map_io() > code, before almost everything else. > Hi How about calling omap2_set_globals_242x() from arch/arm/mach-omap2/io.c: omap2_map_common_io() in order to avoid modifications to n board files? Jarkko