arm: Add support for HYP mode and LPAE page tables

We currently always modify the SVC versions of registers and only support
the short descriptor PTE format.

Some boards however (like the RPi2) run in HYP mode. There, we need to modify
the HYP version of system registers and HYP mode only supports the long
descriptor PTE format.

So this patch introduces support for both long descriptor PTEs and HYP mode
registers.

Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Alexander Graf
2016-03-16 15:41:21 +01:00
committed by Tom Rini
parent 53eb45ef40
commit d990f5c834
3 changed files with 161 additions and 12 deletions

View File

@@ -31,4 +31,12 @@ config ARMV7_VIRT
---help---
Say Y here to boot in hypervisor (HYP) mode when booting non-secure.
config ARMV7_LPAE
boolean "Use LPAE page table format" if EXPERT
depends on CPU_V7
default n
---help---
Say Y here to use the long descriptor page table format. This is
required if U-Boot runs in HYP mode.
endif