arm: caches: Disable mmu only if mmu is available
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 30 Oct 2019 10:25:41 +0000 (15:55 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:01:13 +0000 (18:01 -0500)
commit7a540eeecc14b974e421ccdb26a242ccf87f3d49
treeb36168b1020cfae3f2d37a45c12d2d05cd50b807
parent68c0912bf25d71e48f0775051b58443ad35faf23
arm: caches: Disable mmu only if mmu is available

As part of disabling caches MMU as well gets disabled. But MMU is not
available on all armv7 cores like R5F. So disable MMU only if it is
available.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/lib/cache-cp15.c