public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] imx8mq: soc: Set the BYPASS ID SWAP bit (GPR10 bit 1)
@ 2022-04-10  4:18 Peng Fan (OSS)
  2022-04-12 18:48 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan (OSS) @ 2022-04-10  4:18 UTC (permalink / raw)
  To: u-boot, Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team; +Cc: Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Set the BYPASS ID SWAP bit (GPR10 bit 1).
The ID SWAP function randomly make TZASC grant non-secure access to
secure memory. TZASC ID SWAP should be bypassed by setting the bit
TZASC_ID_SWAP_BYPASS(bit 1) in IOMUX_GPR10 register.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/mach-imx/imx8m/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 7397b99a1eee..404322cb69f1 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -72,7 +72,7 @@ void enable_tzc380(void)
 	 * According to TRM, TZASC_ID_SWAP_BYPASS should be set in
 	 * order to avoid AXI Bus errors when GPU is in use
 	 */
-	if (is_imx8mm() || is_imx8mn() || is_imx8mp())
+	if (is_imx8mq() || is_imx8mm() || is_imx8mn() || is_imx8mp())
 		setbits_le32(&gpr->gpr[10], GPR_TZASC_ID_SWAP_BYPASS);
 
 	/*
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] imx8mq: soc: Set the BYPASS ID SWAP bit (GPR10 bit 1)
  2022-04-10  4:18 [PATCH] imx8mq: soc: Set the BYPASS ID SWAP bit (GPR10 bit 1) Peng Fan (OSS)
@ 2022-04-12 18:48 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2022-04-12 18:48 UTC (permalink / raw)
  To: Peng Fan (OSS), u-boot

> From: Peng Fan <peng.fan@nxp.com>
> Set the BYPASS ID SWAP bit (GPR10 bit 1).
> The ID SWAP function randomly make TZASC grant non-secure access to
> secure memory. TZASC ID SWAP should be bypassed by setting the bit
> TZASC_ID_SWAP_BYPASS(bit 1) in IOMUX_GPR10 register.
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-12 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-10  4:18 [PATCH] imx8mq: soc: Set the BYPASS ID SWAP bit (GPR10 bit 1) Peng Fan (OSS)
2022-04-12 18:48 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox