mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 17:10:28 +00:00
feat(esp_hw_support): use pvt to auto control digital ldo and rtc ldo for esp32p4
This commit is contained in:

committed by
Xiao Xufeng

parent
b971cf5bf9
commit
08eea3c058
@@ -20,6 +20,7 @@
|
||||
#include "esp_private/esp_sleep_internal.h"
|
||||
#include "esp_private/esp_timer_private.h"
|
||||
#include "esp_private/rtc_clk.h"
|
||||
#include "soc/rtc.h"
|
||||
#include "esp_private/sleep_event.h"
|
||||
#include "esp_private/system_internal.h"
|
||||
#include "esp_private/io_mux.h"
|
||||
@@ -741,6 +742,9 @@ static SLEEP_FN_ATTR void misc_modules_sleep_prepare(uint32_t sleep_flags, bool
|
||||
regi2c_tsens_reg_read();
|
||||
#endif
|
||||
}
|
||||
#if CONFIG_ESP_ENABLE_PVT
|
||||
pvt_func_enable(false);
|
||||
#endif
|
||||
|
||||
if (s_sleep_sub_mode_ref_cnt[ESP_SLEEP_USE_ADC_TSEN_MONITOR_MODE] == 0) {
|
||||
// TODO: IDF-7370
|
||||
@@ -753,6 +757,10 @@ static SLEEP_FN_ATTR void misc_modules_sleep_prepare(uint32_t sleep_flags, bool
|
||||
*/
|
||||
static SLEEP_FN_ATTR void misc_modules_wake_prepare(uint32_t sleep_flags)
|
||||
{
|
||||
#if CONFIG_ESP_ENABLE_PVT
|
||||
pvt_func_enable(true);
|
||||
#endif
|
||||
|
||||
#if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
|
||||
if (sleep_flags & PMU_SLEEP_PD_TOP) {
|
||||
// There is no driver to manage the flashboot watchdog, and it is definitely be in off state when
|
||||
|
Reference in New Issue
Block a user