Browse Source

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 <rutigl@gmail.com>
pull/2000/merge
rutigl 5 months ago
committed by Margarita Glushkin
parent
commit
0a1df64117
  1. 3
      include/plat/nuvoton/npcm845x/platform_def.h

3
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, \

Loading…
Cancel
Save