Merge branch 'change/allow_keep_sar_poweron_in_light_sleep_v5.3' into 'release/v5.3'

change(esp_hw_support): allow sar power keep on during lightsleep (v5.3)

See merge request espressif/esp-idf!38455
This commit is contained in:
Jiang Jiang Jian
2025-04-17 17:19:22 +08:00

View File

@@ -673,7 +673,7 @@ FORCE_INLINE_ATTR void misc_modules_sleep_prepare(bool deep_sleep, uint32_t pd_f
#endif #endif
} }
if (!(deep_sleep && s_adc_tsen_enabled)){ if (!s_adc_tsen_enabled){
// TODO: IDF-7370 // TODO: IDF-7370
sar_periph_ctrl_power_disable(); sar_periph_ctrl_power_disable();
} }
@@ -703,7 +703,9 @@ FORCE_INLINE_ATTR void misc_modules_wake_prepare(uint32_t pd_flags)
sleep_usb_otg_phy_restore(); sleep_usb_otg_phy_restore();
} }
#endif #endif
if (!s_adc_tsen_enabled) {
sar_periph_ctrl_power_enable(); sar_periph_ctrl_power_enable();
}
#if CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP && SOC_PM_CPU_RETENTION_BY_RTCCNTL #if CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP && SOC_PM_CPU_RETENTION_BY_RTCCNTL
sleep_disable_cpu_retention(); sleep_disable_cpu_retention();
#endif #endif