From 0a1df6411734d1793e06e508f27bcf95f01c703f Mon Sep 17 00:00:00 2001 From: rutigl Date: Tue, 4 Jun 2024 16:20:10 +0300 Subject: [PATCH] fix(nuvoton): fix MMU mapping settings MAP_DEVICE0 for internal (register) space access settings flag MT_NS was changed to MT_SECURE to enable access to the TSGEN register, otherwise it brings to MCR violation, because access to the TSGEN register is locked and enabled for secure only Change-Id: Id2fe90d30342706c58064161360d8be6e0d5616b Signed-off-by: Margarita Glushkin --- include/plat/nuvoton/npcm845x/platform_def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/plat/nuvoton/npcm845x/platform_def.h b/include/plat/nuvoton/npcm845x/platform_def.h index 9cbf839a8..c70ef22f8 100644 --- a/include/plat/nuvoton/npcm845x/platform_def.h +++ b/include/plat/nuvoton/npcm845x/platform_def.h @@ -157,7 +157,8 @@ /* MMU entry for internal (register) space access */ #define MAP_DEVICE0 \ - MAP_REGION_FLAT(PLAT_REG_BASE, PLAT_REG_SIZE, MT_DEVICE | MT_RW | MT_NS) + MAP_REGION_FLAT(PLAT_REG_BASE, PLAT_REG_SIZE, \ + MT_DEVICE | MT_RW | MT_SECURE) #define MAP_DEVICE1 \ MAP_REGION_FLAT(DEVICE1_BASE, DEVICE1_SIZE, \