diff options
author | Ye Li <ye.li@nxp.com> | 2020-05-04 21:16:53 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-05-10 20:55:20 +0200 |
commit | 1074af51ec04c17a755c76fe0f76b0d53ca47af9 (patch) | |
tree | 263905e025694a296531fc1349e25f9e8fa29c7d /drivers | |
parent | e8f8b5ccf2b1b02f1614941d025c31cfbf78ab2b (diff) | |
download | u-boot-1074af51ec04c17a755c76fe0f76b0d53ca47af9.zip u-boot-1074af51ec04c17a755c76fe0f76b0d53ca47af9.tar.gz u-boot-1074af51ec04c17a755c76fe0f76b0d53ca47af9.tar.bz2 |
power: imx8: Check owned resource in power on
When fspi is assigned to M4, we have to let the fspi probe failed when
its power domain is failed to power up. Because not all devices have power
domain (for example, external devices on the board). Current checking
resource owner in power domain probe is not good, change to check it in
power on.
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/domain/imx8-power-domain-legacy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index b68be40..a5f2f8a 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -91,6 +91,9 @@ static int imx8_power_domain_on(struct power_domain *power_domain) return 0; if (pdata->resource_id != SC_R_LAST) { + if (!sc_rm_is_resource_owned(-1, pdata->resource_id)) + printf("%s [%d] not owned by curr partition\n", dev->name, pdata->resource_id); + ret = sc_pm_set_resource_power_mode(-1, pdata->resource_id, SC_PM_PW_MODE_ON); if (ret) { |