]> git.baikalelectronics.ru Git - uboot.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)
commite1e17a90e79692d5ba01ae5e5c9dfdb25eb9fe89
tree5238ad6e7938fa1d6d4ef4940961320ed11d08ac
parentebfdf92b6b0e6939fce3a38274cd5097ab6a104b
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]