ARM Platforms: Change the TZC access permissions for EL3 payload
authorSoby Mathew <soby.mathew@arm.com>
Mon, 13 Nov 2017 08:29:45 +0000 (08:29 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Tue, 5 Dec 2017 15:58:45 +0000 (15:58 +0000)
This patch allows non-secure bus masters to access TZC region0 as well
as the EL3 Payload itself.

Change-Id: I7e44f2673a2992920d41503fb4c57bd7fb30747a
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
plat/arm/common/arm_tzc400.c

index 23c031734542f7653345f383a5ed85e9d8c45452..cf13326844e7abaa7c508255b7b16ec5bf643168 100644 (file)
@@ -74,8 +74,8 @@ void arm_tzc400_setup(void)
 
 #else /* if defined(EL3_PAYLOAD_BASE) */
 
-       /* Allow secure access only to DRAM for EL3 payloads. */
-       tzc400_configure_region0(TZC_REGION_S_RDWR, 0);
+       /* Allow Secure and Non-secure access to DRAM for EL3 payloads */
+       tzc400_configure_region0(TZC_REGION_S_RDWR, PLAT_ARM_TZC_NS_DEV_ACCESS);
 
 #endif /* EL3_PAYLOAD_BASE */