RealView: Add sparsemem support for the RealView PBX platform
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 4 Nov 2009 12:19:05 +0000 (12:19 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 5 Nov 2009 10:10:36 +0000 (10:10 +0000)
commitc97c5aa83c41a532bc67da356d77da929bc41b9c
treeb01bec4b8151f5697512b180406c54bc5588811a
parent157aed7473d300587e89cc87e13f194e3fa6fa36
RealView: Add sparsemem support for the RealView PBX platform

The RealView PBX board has two 512MB blocks of memory - one at
0x70000000 (with 256MB mirror at 0) and another at 0x20000000. Only the
block at 0x70000000 (or the mirror at 0) may be used for DMA (e.g.
framebuffer). This patch adds the sparsemem definitions to allow the use
of all the memory split as follows:

  256MB @ 0x00000000 (ZONE_DMA)
  512MB @ 0x20000000 (ZONE_NORMAL)
  256MB @ 0x80000000 (ZONE_NORMAL)

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mach-realview/Kconfig
arch/arm/mach-realview/core.c
arch/arm/mach-realview/include/mach/memory.h
arch/arm/mach-realview/realview_pbx.c