I configured System Control Register for Deep sleep but system is not going to deep sleep.
status = ASMC_SetPowerModeStop(BBS_SIM, kASMC_PartialStop1);
* brief Configure the system to Stop power mode.
* param base ASMC peripheral base address.
* param option Partial Stop mode option.
* return ASMC configuration error code.
status_t ASMC_SetPowerModeStop(ASMC_Type *base, asmc_partial_stop_option_t option)
PRINTF("%s ++++++++++++++++++++++++++\r\n", __func__);
/* configure the Partial Stop mode in Normal Stop mode */
reg = base->STOPCTRL;
reg &= ~ASMC_STOPCTRL_PSTOPO_MASK;
reg |= ((uint32_t)option << ASMC_STOPCTRL_PSTOPO_SHIFT);
base->STOPCTRL = reg;
/* configure Normal Stop mode */
reg = base->PMCTRL;
reg &= ~ASMC_PMCTRL_STOPM_MASK;
reg |= (kASMC_StopNormal << ASMC_PMCTRL_STOPM_SHIFT);
base->PMCTRL = reg;
/* Set the SLEEPDEEP bit to enable deep sleep mode (stop mode) */
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
PRINTF("%s ++++++++++++++++++++++++++ SCB->SCR: 0x%x\r\n", __func__, SCB->SCR);
/* read back to make sure the configuration valid before entering stop mode */
PRINTF("%s ------------------------\r\n", __func__);
Thanks & Regards,
The implementation mentioned on the link you shared would refer to a vehicle implementation.
The i.MX8QM-MEK uses PMICs and instead of using the Linux Power management like other i.MX processors, power is handled by the System Controller. You can find more information on the i.MX8QM Documentation. The Android Automotive BSP for the i.MX8QM does integrate the Android Power HAL.
I hope this helps!
Hi Gusarambula thank you for the reply,
Will you please provide IMX8QM-MEK power management document for sleep and wake up A35 from M4.
Thanks & Regards,
Some of the i.MX8QM documentation is not publicly available, like the Reference Manual, so you may open a case and request to sign an NDA to request access.
As for the SCFW documentation, please search for the SCFW Porting Kit under the Linux BSPs on the Prereleases BSP page on the link below (you may need to login to download this file):
My apologies for the inconvenience!