genpd: imx: scu-pd: initialize is_off according to HW state
authorPeng Fan <peng.fan@nxp.com>
Mon, 14 Aug 2023 10:41:25 +0000 (18:41 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 17 Aug 2023 09:33:54 +0000 (11:33 +0200)
commit4f6c9832613b421e56bad2f9e4e2767e43e1f97c
tree0d801e57683822ddebbe1cf1107d44f645beaa8f
parentec8b5619750eaced14bfe38ec53f760d7cead19f
genpd: imx: scu-pd: initialize is_off according to HW state

The current code default set is_off to true except console resource,
this implies bootloader should power off all the resources it uses.

But this is not always true, let's check the HW state and set is_off.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/genpd/imx/scu-pd.c