mirror of
https://xff.cz/git/u-boot/
synced 2025-10-09 04:04:58 +02:00
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:deca6cfbf5
("imx8mn: set BYPASS ID SWAP to avoid AXI bus errors") Fixes:a07c718129
("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>
This commit is contained in:
committed by
Stefano Babic
parent
3113861beb
commit
1289ff7bd7
@@ -80,8 +80,10 @@
|
||||
#include <linux/bitops.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define GPR_TZASC_EN BIT(0)
|
||||
#define GPR_TZASC_EN_LOCK BIT(16)
|
||||
#define GPR_TZASC_EN BIT(0)
|
||||
#define GPR_TZASC_ID_SWAP_BYPASS BIT(1)
|
||||
#define GPR_TZASC_EN_LOCK BIT(16)
|
||||
#define GPR_TZASC_ID_SWAP_BYPASS_LOCK BIT(17)
|
||||
|
||||
#define SRC_SCR_M4_ENABLE_OFFSET 3
|
||||
#define SRC_SCR_M4_ENABLE_MASK BIT(3)
|
||||
|
Reference in New Issue
Block a user