diff options
author | Jonathan Austin <jonathan.austin@arm.com> | 2012-07-12 09:38:46 -0400 |
---|---|---|
committer | Jonathan Austin <jonathan.austin@arm.com> | 2013-06-07 12:02:46 -0400 |
commit | 66567618f37269ec55febee4dcec2a1dec1033a0 (patch) | |
tree | 0ed6860a95e74ec9e36c5855fadee74c595ae966 | |
parent | 8d655d835bc5c0cb7d485d147ba96249e356a697 (diff) |
ARM: select CPU_CPU15_MMU/MPU appropriately
Currently CPU_V7 selects CPU_CP15_MMU, however in the case of a V7 CPU
implementing the PMSA, such as the Cortex-R7, the CP15_MMU operations are
not available. Selecting CPU_CP15_MPU is appropriate in this case.
This patch makes CPU_CP15_MMU dependent on the use of the MMU, selecting
CPU_CP15_MPU for v7 processors when !MMU is chosen.
Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
-rw-r--r-- | arch/arm/mm/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 9e8101ecd63e..6cacdc8dd654 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -392,7 +392,8 @@ config CPU_V7 | |||
392 | select CPU_CACHE_V7 | 392 | select CPU_CACHE_V7 |
393 | select CPU_CACHE_VIPT | 393 | select CPU_CACHE_VIPT |
394 | select CPU_COPY_V6 if MMU | 394 | select CPU_COPY_V6 if MMU |
395 | select CPU_CP15_MMU | 395 | select CPU_CP15_MMU if MMU |
396 | select CPU_CP15_MPU if !MMU | ||
396 | select CPU_HAS_ASID if MMU | 397 | select CPU_HAS_ASID if MMU |
397 | select CPU_PABRT_V7 | 398 | select CPU_PABRT_V7 |
398 | select CPU_TLB_V7 if MMU | 399 | select CPU_TLB_V7 if MMU |