[ARM] tegra: Use memblock_remove to allocate carveout and framebuffer
authorColin Cross <ccross@android.com>
Tue, 19 Oct 2010 21:45:50 +0000 (14:45 -0700)
committerColin Cross <ccross@android.com>
Wed, 20 Oct 2010 21:30:17 +0000 (14:30 -0700)
commit9796850a6b8716aa5eaddb864816cb61fcea4894
tree606c4a5bd00848850a4dfbce6b9d1a8e3b315f50
parent4263b270498e08bcfd9a8849995d977a2991f744
[ARM] tegra: Use memblock_remove to allocate carveout and framebuffer

This uses the patch by rmk to allow memblock_remove to be used to
remove areas of memory from the 1:1 mapping, allowing them to be
remapped later using iomap or, for Tegra, nvmap.

Also uses memblock_reserve to reserve the lp0 boot vector, so it
doesn't need to be copied later in tegra_init_suspend.

tegra_reserve should be called from the machine reserve callback
after any board-specific memory areas are reserved.

Change-Id: I26be8544a03b6da74fe66dc53a77681d431c303c
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/board.h
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/suspend.c