MLK-16087 imx8qm/qxp: Disable kernel FDT nodes for the resources are not owned
authorYe Li <ye.li@nxp.com>
Mon, 16 Apr 2018 07:05:24 +0000 (00:05 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:48:14 +0000 (01:48 -0700)
commit193deece3e9516258b15913bd89f34f2767367bd
treea84e6d8c219f926768c53a59a85e7787cf72007b
parent170e0b77cddaa8bad28e5c9e57c3dc9af0e11d59
MLK-16087 imx8qm/qxp: Disable kernel FDT nodes for the resources are not owned

Before starting the kernel, need to check if the enabled nodes (resources) in FDT
are owned by current partition.  If it is not owned, need to disable it because A core
can't access it.
We use the node's power-domain property to get the PD node which has the SCFW resource
id in its reg property. Then we can check it with SCFW.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/imx8/cpu.c