ARM: tegra: use section-sized static mappings for LPAE too
authorStephen Warren <swarren@nvidia.com>
Tue, 29 Oct 2013 19:47:21 +0000 (13:47 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 4 Dec 2013 19:25:25 +0000 (12:25 -0700)
commit6dee8200b794a83c0fb144878fdf0ac52af28835
tree5f8c36c441ff5d2fd3a5fb2f6315b897e58e3552
parent2f1d70af28a94988c1e8fba2ae03d4c7e68e690b
ARM: tegra: use section-sized static mappings for LPAE too

The static mappings for Tegra's PPSB and APB regions were sized at 1MB
in order to allow mapping via sections in order to avoid burning RAM for
PTEs. On LPAE, sections are 2MB, so the static mappings need to be
larger in order to gain the same benefit. Set IO_{PPSB,APB}_SIZE to
SECTION_SIZE so this adjusts automatically.

While we're fiddling with iomap.h, compress IO_{IRAM,CPU}_VIRT together
to save virtual address space in the vmalloc region; these two regions
are mapped using PTEs.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/iomap.h