mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 22:05:40 +00:00
feat(imx8mm): set and lock almost all peripherals as non-secure
This sets and locks all peripheral type-1 masters, except CAAM, access as non-secure, so that they can't access secure world resources from the normal world. The CAAM itself is TrustZone aware and handles memory access between the normal world and the secure world on its own. Pinning it as non-secure access results in bus aborts if the secure memory region is protected by the TZASC380. Change-Id: Idba4d8a491ccce0491489c61e73545baab1889c4 Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
This commit is contained in:
parent
81de50372c
commit
f4b11e59b8
1 changed files with 18 additions and 0 deletions
|
@ -82,6 +82,24 @@ static const struct imx_csu_cfg csu_cfg[] = {
|
||||||
/* master HP0~1 */
|
/* master HP0~1 */
|
||||||
|
|
||||||
/* SA setting */
|
/* SA setting */
|
||||||
|
CSU_SA(CSU_SA_M4, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_SDMA1, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_PCIE_CTRL1, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_USB1, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_USB2, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_VPU, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_GPU, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_APBHDMA, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_ENET, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_USDHC1, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_USDHC2, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_USDHC3, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_HUGO, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_DAP, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_SDMA2, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_SDMA3, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_LCDIF, NON_SEC_ACCESS, LOCKED),
|
||||||
|
CSU_SA(CSU_SA_CSI, NON_SEC_ACCESS, LOCKED),
|
||||||
|
|
||||||
/* HP control setting */
|
/* HP control setting */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue