]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: select CPU_CPU15_MMU/MPU appropriately
authorJonathan Austin <jonathan.austin@arm.com>
Thu, 12 Jul 2012 13:38:46 +0000 (14:38 +0100)
committerJonathan Austin <jonathan.austin@arm.com>
Fri, 7 Jun 2013 16:02:46 +0000 (17:02 +0100)
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>
arch/arm/mm/Kconfig

index 9e8101ecd63e6a2b158849b74e14921a2b273177..6cacdc8dd654dd11ecbfb45f7576f1ead0a1062e 100644 (file)
@@ -392,7 +392,8 @@ config CPU_V7
        select CPU_CACHE_V7
        select CPU_CACHE_VIPT
        select CPU_COPY_V6 if MMU
-       select CPU_CP15_MMU
+       select CPU_CP15_MMU if MMU
+       select CPU_CP15_MPU if !MMU
        select CPU_HAS_ASID if MMU
        select CPU_PABRT_V7
        select CPU_TLB_V7 if MMU