mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-20 03:24:25 +00:00
Merge "fix(imx8mp): uncondtionally enable only the USB power domain" into integration
This commit is contained in:
commit
e2c7934093
1 changed files with 12 additions and 4 deletions
|
@ -374,12 +374,20 @@ void imx_gpc_init(void)
|
||||||
mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG1PHY_SCR, 0x1);
|
mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG1PHY_SCR, 0x1);
|
||||||
mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG2PHY_SCR, 0x1);
|
mmio_clrbits_32(IMX_SRC_BASE + SRC_OTG2PHY_SCR, 0x1);
|
||||||
|
|
||||||
/* enable all the power domain by default */
|
/* enable all clocks by default */
|
||||||
for (i = 0; i < 101; i++) {
|
for (i = 0; i < 101; i++) {
|
||||||
mmio_write_32(IMX_CCM_BASE + CCGR(i), 0x3);
|
mmio_write_32(IMX_CCM_BASE + CCGR(i), 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 20; i++) {
|
/* Depending on SKU, we may be lacking e.g. a VPU and shouldn't
|
||||||
imx_gpc_pm_domain_enable(i, true);
|
* access that domain here, because that would lockup the SoC.
|
||||||
}
|
* Other i.MX8M variants don't initialize any power domains, but
|
||||||
|
* for 8MP we have been enabling the USB power domains since the
|
||||||
|
* beginning and stopping to do this now may render systems
|
||||||
|
* unrecoverable. So we'll keep initializing just the USB power
|
||||||
|
* domains instead of all of them like before.
|
||||||
|
*/
|
||||||
|
imx_gpc_pm_domain_enable(HSIOMIX, true);
|
||||||
|
imx_gpc_pm_domain_enable(USB1_PHY, true);
|
||||||
|
imx_gpc_pm_domain_enable(USB2_PHY, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue