mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
imx: imx8m: drop uneeded check
All i.MX8M needs TZASC ID SWAP set and locked, no need the check to waste cpu cycles. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
This commit is contained in:
parent
5dd9db8f7d
commit
a1d675ac77
@ -72,15 +72,13 @@ void enable_tzc380(void)
|
|||||||
* According to TRM, TZASC_ID_SWAP_BYPASS should be set in
|
* According to TRM, TZASC_ID_SWAP_BYPASS should be set in
|
||||||
* order to avoid AXI Bus errors when GPU is in use
|
* order to avoid AXI Bus errors when GPU is in use
|
||||||
*/
|
*/
|
||||||
if (is_imx8mq() || is_imx8mm() || is_imx8mn() || is_imx8mp())
|
setbits_le32(&gpr->gpr[10], GPR_TZASC_ID_SWAP_BYPASS);
|
||||||
setbits_le32(&gpr->gpr[10], GPR_TZASC_ID_SWAP_BYPASS);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* imx8mn and imx8mp implements the lock bit for
|
* imx8mn and imx8mp implements the lock bit for
|
||||||
* TZASC_ID_SWAP_BYPASS, enable it to lock settings
|
* TZASC_ID_SWAP_BYPASS, enable it to lock settings
|
||||||
*/
|
*/
|
||||||
if (is_imx8mn() || is_imx8mp())
|
setbits_le32(&gpr->gpr[10], GPR_TZASC_ID_SWAP_BYPASS_LOCK);
|
||||||
setbits_le32(&gpr->gpr[10], GPR_TZASC_ID_SWAP_BYPASS_LOCK);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* set Region 0 attribute to allow secure and non-secure
|
* set Region 0 attribute to allow secure and non-secure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user