]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Runtime constants: use runtime-computed system control module base
authorPaul Walmsley <paul@pwsan.com>
Wed, 21 Nov 2007 00:16:24 +0000 (17:16 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 21:50:54 +0000 (13:50 -0800)
commit3e1251dd443d07f5a5298646adf746e4add89cf3
tree3615f7447d4d5e2be2f30c5d32bddfaa52f210a9
parent80ccf4b99eb3892809bbebf7673bdd1a359d56ff
Runtime constants: use runtime-computed system control module base

Create a global variable, omap2_ctrl_base, that is initialized with
the appropriate control module base address at runtime during
architecture initialization.  Convert users of the preprocessor define
OMAP2_CTRL_BASE to use the runtime-computed address, and get rid of
OMAP2_CTRL_BASE.  Create ctrl_{read,write}_reg() to handle register
access to these functions - these live in a newly-created file,
arch/arm/mach-omap2/control.h.  Add the control register defines that
we currently use into a newly-created file,
include/asm-arm/arch-omap/control.h, where they can be imported into
assembly-language code.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 files changed:
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/clock34xx.h
arch/arm/mach-omap2/control.h [new file with mode: 0644]
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/pm.c
arch/arm/plat-omap/common.c
arch/arm/plat-omap/devices.c
arch/arm/plat-omap/mux.c
arch/arm/plat-omap/sram.c
arch/arm/plat-omap/usb.c
include/asm-arm/arch-omap/control.h [new file with mode: 0644]
include/asm-arm/arch-omap/omap24xx.h
include/asm-arm/arch-omap/omap34xx.h
include/asm-arm/arch-omap/usb.h