MLK-23963 imx: mx6/7: Move configure_tzc380 to each SOC arch init
authorYe Li <ye.li@nxp.com>
Sun, 10 May 2020 13:52:30 +0000 (06:52 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 10:26:02 +0000 (03:26 -0700)
commitca501ccb95281760a18eff79b23a9670d89ec652
tree127efedbd2966e24df15f96008b505e1e1cf71af
parentfdd0359358df2e1c6c5827b5cb26ea24a17e4684
MLK-23963 imx: mx6/7: Move configure_tzc380 to each SOC arch init

The commit "TEE-520 core: imx: Set TZASC region 0 to non-sec"
added configure_tzc380 function in imx_sec_init to set region 0 to
non-sec, however imx_sec_init is called only on SOCs which has CAAM.
For SOCs use DCP, like 6SLL, 6ULL/6ULZ, 6SL, this function does not
execute, and cause the trustzone won't be configured.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit ab351d816b582382baf82c72546d8b7b3618de29)
(cherry picked from commit 6ee1dbf350583cc5c7c8cfe3308a389c61ee38e9)
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/misc.c
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/soc.c