Andrey Zhizhikin 1289ff7bd7 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: deca6cfbf5d7 ("imx8mn: set BYPASS ID SWAP to avoid AXI bus errors")
Fixes: a07c7181296f ("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>
2022-02-05 15:49:01 +01:00
..
2020-07-09 20:58:06 +05:30
2021-10-01 21:08:19 -04:00
2021-08-09 14:46:51 +02:00
2021-10-08 15:53:26 -04:00
2021-10-07 16:53:50 +02:00
2019-04-25 19:16:24 +02:00
2021-09-23 14:15:32 -04:00
2021-08-09 14:46:51 +02:00
2021-10-07 16:53:50 +02:00
2019-08-11 16:43:41 -04:00