[PATCH] imx: power-domain: enable parent power domain
Patrick Wildt
patrick at blueri.se
Sat Jan 28 23:14:01 CET 2023
The PCIe power domains are dependant on each other, which is why
the device tree makes both PCIe controllers reference the PCIe1
power domain, which then depends on the PCIe2 power domain.
Enabling the parent power domain used to be part of the driver,
but got partially lost in the rewrite. Add the enable call back
to be able to power up PCIe2.
Signed-off-by: Patrick Wildt <patrick at blueri.se>
---
drivers/power/domain/imx8m-power-domain.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index 145f6ec0cd..d8e9ce3291 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -330,6 +330,9 @@ static int imx8m_power_domain_on(struct power_domain *power_domain)
u32 pgc;
int ret;
+ if (pdata->has_pd)
+ power_domain_on(&pdata->pd);
+
if (pdata->clk.count) {
ret = clk_enable_bulk(&pdata->clk);
if (ret) {
--
2.39.1
More information about the U-Boot
mailing list