MLK-20958-2 imx8: Replace SC_R_LAST with SC_R_NONE in DTB
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 27 Feb 2019 19:51:26 +0000 (21:51 +0200)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:20 +0000 (04:28 -0700)
commitbe563f60e44757afe4ef2b89d2f043b6aa2a1573
tree123d4a61286c02ebc063c7b94aa29316d481ad82
parent0fdf31131f926acdb1d63d608cc71882e321c074
MLK-20958-2 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.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 93f302a6642adedfdd6336b22d08f32284539e35)
arch/arm/dts/fsl-imx8dx.dtsi
arch/arm/dts/fsl-imx8qm-device.dtsi
arch/arm/mach-imx/imx8/cpu.c
drivers/power/domain/imx8-power-domain.c