]> git.baikalelectronics.ru Git - uboot.git/commit
imx8m: lock id_swap_bypass bit in tzc380 enable
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Mon, 24 Jan 2022 20:48:09 +0000 (21:48 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:01 +0000 (15:49 +0100)
commit626ac984c92664b51d38daaa0dc62548ee31aab1
treee41d3851a8fd08e2f0de620dd456459822e85061
parent25680943302299d87facc1a3dd7db111acd94353
imx8m: lock id_swap_bypass bit in tzc380 enable

According to TRM for i.MX8M Nano and Plus, GPR10 register contains lock
bit for TZASC_ID_SWAP_BYPASS bit. This bit is required to be set in
order to avoid AXI bus errors when GPU is enabled on the platform.
TZASC_ID_SWAP_BYPASS bit is alread set for all imx8m applicable
derivatives, but is missing a lock settings to be applied.

Set the TZASC_ID_SWAP_BYPASS_LOCK bit for those derivatives which have
it implemented.

Since we're here, provide also names to bits from TRM instead of using
BIT() macro in the code.

Fixes: 5cbd2e6ae58f ("imx8mn: set BYPASS ID SWAP to avoid AXI bus errors")
Fixes: 620ff77955b9 ("imx8mp: set BYPASS ID SWAP to avoid AXI bus errors")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Cc: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8m/imx-regs.h
arch/arm/mach-imx/imx8m/soc.c