Hello,
HW: imx8dxl
ATF: imx-atf < lf-6.12.3-1.0.0>
Our requirement is ,
<1>, config the pad as wake up source.
<2>, put the A35 core in suspend mode.
For <1>, we can use the corresponding sc-fw APIs and it seems no issue.
For <2>, there is some issue.
We tried to use the some psci call (imx_psci_call(regx0, regx1, .... regx4)) like below to put the A35 in suspend state:
power_state = psci_make_powerstate(0, PSTATE_TYPE_POWERDOWN,0);
imx_psci_call(IMX_PSCI_CPU_SUSPEND_AARCH64, power_state,0,0,0);
The reason we used 'PSTATE_TYPE_POWERDOWN" was, I checked the code in "imx_validate_power_state()", it only deals PSTATE_TYPE_POWERDOWN.
We also added some debug code in imx_domain_suspend() of <plat\imx\imx8dxl\imx8dxl_psci.c>
Then we found out the below if branch (in imx_domain_suspend() ) for setting the suspend did not enter:
if (is_local_state_retn(target_state->pwr_domain_state[MPIDR_AFFLVL1])) {
....
Could you please give some comment on this?
What parameters shall we use for the psci call?
Thank you.