armv7R: K3: am654: Enable MPU regions
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 2 Nov 2018 14:21:03 +0000 (19:51 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:51:58 +0000 (16:51 -0500)
commit23f7b1a77602d335811aea80af1cacf5bff502af
tree189fd738a698c084c535e185a88d92be717e921e
parent06bda1259ffc3ef899de70c7fb86b0982a2912f0
armv7R: K3: am654: Enable MPU regions

Enable MPU regions for AM654 evm:
- Region0: 0x00000000 - 0xFFFFFFFF: Device memory, not executable
- Region1: 0x41c00000 - 0x42400000: Normal, executable, WB, Write alloc
- Region2: 0x80000000 - 0xFFFFFFFF: Normal, executable, WB, Write alloc
- region3-15: Disabled

With this dcache can be enabled either in SPL or U-Boot.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-k3/Makefile
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/common.h [new file with mode: 0644]
arch/arm/mach-k3/r5_mpu.c [new file with mode: 0644]