Skip to content

Commit

Permalink
LFU-626 imx: imx95: workaround NETC suspend/resume
Browse files Browse the repository at this point in the history
NETC in Kernel currently not support suspend/resume, so let
U-Boot power up NETC and set pd_ignore_unused, then OS side
could work without power domain, then Linux Kernel suspend/resume
could work, without NETC suspended.

Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
  • Loading branch information
MrVan committed Dec 11, 2023
1 parent 1d95053 commit fd3d93a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions board/freescale/imx95_evk/imx95_evk.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,17 @@ void board_quiesce_devices(void)
printf("%s: Failed for NETC MIX: %d\n", __func__, ret);
return;
}

/*
* Temperary workarount to enable NETC, because NETC kernel driver
* not support suspend/resume, so enable the PD as of now, this need
* to be remove in the end.
*/
ret = imx9_scmi_power_domain_enable(IMX95_PD_NETC, true);
if (ret) {
printf("%s: Failed for NETC MIX: %d\n", __func__, ret);
return;
}
}

#ifdef CONFIG_FSL_FASTBOOT
Expand Down
4 changes: 2 additions & 2 deletions include/configs/imx95_evk.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"mmcpart=1\0" \
"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
"mmcautodetect=yes\0" \
"mmcargs=setenv bootargs ${mcore_clk} console=${console} root=${mmcroot}\0 " \
"mmcargs=setenv bootargs pd_ignore_unused ${mcore_clk} console=${console} root=${mmcroot}\0 " \
"loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
"bootscript=echo Running bootscript from mmc ...; " \
"source\0" \
Expand Down Expand Up @@ -90,7 +90,7 @@
"fi; " \
"fi;" \
"fi;\0" \
"netargs=setenv bootargs ${mcore_clk} console=${console} " \
"netargs=setenv bootargs pd_ignore_unused ${mcore_clk} console=${console} " \
"root=/dev/nfs " \
"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
"netboot=echo Booting from net ...; " \
Expand Down

0 comments on commit fd3d93a

Please sign in to comment.