Skip to content

Commit 040f205

Browse files
jaccoo01adeaarm
authored andcommitted
RSE: Set ATU window to device memory in runtime
Following the MPU configuration in BL1_1 and BL1_2 to set the ATU mapping region as device memory, do the same in runtime. This is required as the runtime completely reconfigures the MPU and therefore the existing region will be removed. Change-Id: I3a52455061d23fa1b2d8d886122b67678501e880 Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com>
1 parent f8a33e2 commit 040f205

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

platform/ext/target/arm/rse/common/tfm_peripherals_def.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019-2024, Arm Limited. All rights reserved.
2+
* SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
33
* Copyright (c) 2020-2023 Cypress Semiconductor Corporation (an Infineon company)
44
* or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
55
*
@@ -95,6 +95,18 @@ extern struct platform_data_t tfm_peripheral_dma0_ch0;
9595
ARM_MPU_RLAR_PXN(DTCM_BASE_S + DTCM_SIZE - 1, \
9696
ARM_MPU_PRIVILEGE_EXECUTE_NEVER, \
9797
0), \
98+
}, \
99+
/* Mark ATU RSE mapping region as device memory to prevent */ \
100+
/* the CPU caching accesses to system memory map */ \
101+
{ \
102+
ARM_MPU_RBAR(HOST_ACCESS_BASE_NS, \
103+
ARM_MPU_SH_NON, \
104+
ARM_MPU_READ_WRITE, \
105+
ARM_MPU_UNPRIVILEGED, \
106+
ARM_MPU_EXECUTE_NEVER), \
107+
ARM_MPU_RLAR_PXN(HOST_ACCESS_LIMIT_S, \
108+
ARM_MPU_PRIVILEGE_EXECUTE_NEVER, \
109+
2 /* Device memory attribute */), \
98110
},
99111

100112
#ifdef __cplusplus

0 commit comments

Comments
 (0)