MLK-18823 mx6ul/mx6ull: Add workaround for LCDIF display when optee enabled
authorYe Li <ye.li@nxp.com>
Wed, 11 Jul 2018 10:17:14 +0000 (03:17 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:07 +0000 (00:56 -0700)
commit1ced0da9d330af8afe5d71148189cd26e221289c
tree66818cb98d50da7e5ed9ad37f2416bc4ef15225a
parentf07032ce3d65137d873d9ae05d520bcaaf223ead
MLK-18823 mx6ul/mx6ull: Add workaround for LCDIF display when optee enabled

In optee enabled defconfig, the trust zone is enabled in DCD. On iMX6UL/ULL, there
is IC limitation that LCDIF master access can only be non-secure, because PL301
hard code the m_3/4/5 to non-secure masters. It causes LCDIF fails to fetch data
from memory.

This patch adds a workaround to change trust zone Region 0 attribute to allow both secure
and non-secure read/write. So it permits the LCDIF master access to memory.
Since optee will configure Region 0 by itself, this should not introduce problem to optee.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 85be73bb5bab319c096f0893729835b3ceddafde)
(cherry picked from commit a7ab49a0856caea6114b4f9d1f6cddb75c944c33)
(cherry picked from commit 5a54394012b76adbd7efe2aa2cea8a8dade860c0)
(cherry picked from commit f27090f07733d322108c0798bad3770adf527794)
(cherry picked from commit b40b9e0d3d102dc4c60c35a2df673f4800af37ae)
(cherry picked from commit 2e9054ad2f62444449b2b9e273c4cc779169979e)
arch/arm/mach-imx/mx6/soc.c