]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx8: disable node when the resource is not owned
authorPeng Fan <peng.fan@nxp.com>
Mon, 26 Aug 2019 08:11:56 +0000 (08:11 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:59 +0000 (16:35 +0200)
commit9f779fa4105f463920e5a857d775672fd0890c41
tree5238ad6e7938fa1d6d4ef4940961320ed11d08ac
parented2ebd8629618b6964fd4bcceba3d69fe139063f
imx8: disable node when the resource is not owned

When resource is not assigned to non-secure Linux, if linux continue
to use the node, linux may crash or hang. So need to set the node
status to disabled for not owned resources.

The resource id is in the power-domains property in device tree,
so parse the power-domains property to get the resource id and
use scfw api to check whether it is owned by current partition.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8/Makefile
arch/arm/mach-imx/imx8/fdt.c [new file with mode: 0644]