]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Runtime constants: use runtime-computed SDRC base
authorPaul Walmsley <paul@pwsan.com>
Wed, 21 Nov 2007 00:16:22 +0000 (17:16 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 21:50:19 +0000 (13:50 -0800)
commit7b5f8cdb222052a7aa02ed38c59e0af1946b1e06
tree4c27c346e3ac0013a34f5abc1cd5e20157c874b0
parent2b256e28e8e70592f0c38a862cc4ba0498c9db7b
Runtime constants: use runtime-computed SDRC base

Create a global variable, omap2_sdrc_base, that is initialized with
the appropriate SDRC base address at runtime during architecture
initialization.  Convert users of the preprocessor define,
OMAP2_SDRC_BASE, to use the runtime-computed address.  Create
sdrc_{read,write}_reg() to handle register access to these functions -
these live in a newly-created file, asm/arch/mach-omap2/sdrc.h.  Move
the SDRC register definitions into include/asm-arm/arch-omap/sdrc.h,
so they can be included in assembly language files.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/memory.c
arch/arm/mach-omap2/sdrc.h
arch/arm/plat-omap/common.c
include/asm-arm/arch-omap/omap24xx.h
include/asm-arm/arch-omap/omap34xx.h
include/asm-arm/arch-omap/sdrc.h [new file with mode: 0644]