arm: Don't try to support CONFIG_ARMV7_LPAE on ARMv4T
authorSimon Glass <sjg@chromium.org>
Wed, 31 May 2017 23:57:13 +0000 (17:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 19:39:32 +0000 (13:39 -0600)
commit10d602ac8b6f576d545e35a951e1a714de0158a3
tree5109fd817bab7bcf296f3acf5f93883d090bea70
parent579dfca2ef2fdff93ae78a942fef49f3d1da3f8c
arm: Don't try to support CONFIG_ARMV7_LPAE on ARMv4T

At present if CONFIG_ARMV7_LPAE is defined then mmu_setup() will use
instructions which are invalid on ARMv4T. This happens on Tegra since it
has an ARMv4T boot CPU. Add a check for the architecture version to allow
the code to be built. It will not actually be executed by the boot CPU,
but needs to compile.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/cache-cp15.c