fix(esp_hw_support): disable sar power when esp32p4 going to deepsleep

This commit is contained in:
wuzhenghui
2024-11-13 11:21:28 +08:00
parent 9196ca3054
commit 14f37bd8e8
2 changed files with 2 additions and 5 deletions

View File

@@ -665,12 +665,10 @@ FORCE_INLINE_ATTR void misc_modules_sleep_prepare(bool deep_sleep)
#endif
}
#if !CONFIG_IDF_TARGET_ESP32P4
// TODO: IDF-7370
if (!(deep_sleep && s_adc_tsen_enabled)){
// TODO: IDF-7370
sar_periph_ctrl_power_disable();
}
#endif
}
/**

View File

@@ -36,8 +36,7 @@ entries:
sleep_system_peripheral:peripheral_domain_pd_allowed (noflash)
sleep_modem:modem_domain_pd_allowed (noflash)
sleep_modem:periph_inform_out_light_sleep_overhead (noflash)
if IDF_TARGET_ESP32P4 = n: # TODO: IDF-6496
sar_periph_ctrl:sar_periph_ctrl_power_disable (noflash)
sar_periph_ctrl:sar_periph_ctrl_power_disable (noflash)
[mapping:esp_system_pm]
archive: libesp_system.a