diff options
author | Jonathan Austin <jonathan.austin@arm.com> | 2013-02-28 17:46:36 (GMT) |
---|---|---|
committer | Jonathan Austin <jonathan.austin@arm.com> | 2013-06-07 16:02:52 (GMT) |
commit | 5ad7dcbe40ae52bee67d7ed61efb6a3fccb6dc2b (patch) | |
tree | e153d41cd443f84fce033ce4d642e3ae91807111 /arch/arm/mach-vt8500 | |
parent | 67c9845beab16a0c97b9c07f72a4b36b7175bb86 (diff) | |
download | linux-fsl-qoriq-5ad7dcbe40ae52bee67d7ed61efb6a3fccb6dc2b.tar.xz |
ARM: mpu: add MPU probe and initialisation functions in C
This patch adds new functions for probing and initialising the ARMv7
PMSA-compliant MPU.
These use the pre-defined and reserved MPU_PROBE_REGION for establishing
properties of the MPU, which is necessary because certain probe operations
require modifying region properties and reading back the results.
This patch also introduces a minimal sanity_check_meminfo_mpu function, that
ensures that the memory set-up passed to the kernel can be used in conjunction
with the MPU. The base address of a region must be aligned to the region size,
otherwise behavior is unpredictable and region sizes can only be specified as a
power-of-two. To simplify the satisfaction of these requirements this
implementation currently enforces that all memory is contiguous from
PHYS_OFFSET, merging banks that are contiguous but passed in separately.
The functions are added in this patch but wired in to the boot process later
in the series.
Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
CC: Hyok S. Choi <hyok.choi@samsung.com>
Diffstat (limited to 'arch/arm/mach-vt8500')
0 files changed, 0 insertions, 0 deletions