imx8: Replace SC_R_LAST with SC_R_NONE in DTB
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 4 May 2020 13:16:54 +0000 (21:16 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit6fcb2ee78337b7d8201baf23c398f5061110dd1d
treee92bdf9566950222a118871c77d448b500841720
parent1074af51ec04c17a755c76fe0f76b0d53ca47af9
imx8: Replace SC_R_LAST with SC_R_NONE in DTB

We are currently using SC_R_LAST as a marker for imx8 power domain tree
nodes without a resource attached. This value is compiled into dtb as
part of the linux build and used by uboot.

The SC_R_LAST constant changes frequently as SCFW resources are added
(by design) and every time we need to update linux and uboot headers
together or boot can fail.

Fix this by replacing SC_R_LAST usage with a new constant SC_R_NONE
defined to be 0xFFF0.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/fsl-imx8dx.dtsi
arch/arm/dts/fsl-imx8qm.dtsi
arch/arm/mach-imx/imx8/cpu.c
drivers/power/domain/imx8-power-domain-legacy.c