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>
Fri, 24 May 2019 11:28:49 +0000 (04:28 -0700)
commitf27090f07733d322108c0798bad3770adf527794
tree0aafd4e6ffa0b0aaf4545044ee16e1f0098bba7c
parentc83877f5ad9385279c5db3d6ab78ed103d45d1d5
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)
arch/arm/mach-imx/mx6/soc.c