]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Runtime constants: introduce omap2_set_globals_*()
authorPaul Walmsley <paul@pwsan.com>
Wed, 21 Nov 2007 00:16:21 +0000 (17:16 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 21:49:30 +0000 (13:49 -0800)
commit2b256e28e8e70592f0c38a862cc4ba0498c9db7b
tree57523e21c283213c58830a19e00ebb36c5bc0768
parent6094b32c5fa10a83d034c0608653712df1a87623
Runtime constants: introduce omap2_set_globals_*()

Add the omap2_set_globals_{242x,243x,343x}() functions.  These
functions are called early upon boot in the map_io() functions in the
board-specific init files.  The functions are currently no-ops.  Later
patches augment these functions to set global variables to the base
virtual addresses of OMAP modules.  This makes it possible to write
code that can run without modification on multiple OMAP chip
revisions.

The *_set_globals_* functions are added into
arch/arm/plat-omap/common.c.  This patch currently only introduces
OMAP2 and OMAP3 functions, but a later patch introduces an
OMAP16XX-specific version, omap1_set_globals_16xx().

Also, while we are here, we get rid of the unused OMAP_L4_BASE define.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-2430osk.c
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/mach-omap2/board-generic.c
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-n800.c
arch/arm/plat-omap/common.c
include/asm-arm/arch-omap/common.h
include/asm-arm/arch-omap/omap24xx.h
include/asm-arm/arch-omap/omap34xx.h