Skip to content

Commit

Permalink
LFU-632 imx95_evk: Power up hsiomix for USB gadget used in SPL
Browse files Browse the repository at this point in the history
Power on hsiomix in board_usb_init is removed in commit de5fbcc
(LFU-627 imx95_evk: Fix USB host restart crash) because we always
power on hsiomix in u-boot. For SPL, since hsiomix is default
power on, there is no issue from cold boot.

However some team is trying to reboot from USB SDP for remotely
test purpose. SM will power off the hsiomix during the reboot, then
cause issue to SPL. Add back the hsiomix power on in board_usb_init
to fix the issue.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
  • Loading branch information
Ye Li committed Dec 18, 2023
1 parent 9f832f6 commit 46571fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/freescale/imx95_evk/imx95_evk.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ int board_usb_init(int index, enum usb_init_type init)
int ret = 0;

if (index == 0 && init == USB_INIT_DEVICE) {
ret = imx9_scmi_power_domain_enable(IMX95_PD_HSIO_TOP, true);
if (ret) {
printf("SCMI_POWWER_STATE_SET Failed for USB\n");
return ret;
}

#ifdef CONFIG_USB_DWC3
dwc3_nxp_usb_phy_init(&dwc3_device_data);
#endif
Expand Down

0 comments on commit 46571fc

Please sign in to comment.