mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(esp_hw_support): keep esp32h21 apm_func_ctrl value after sleep
This commit is contained in:
@@ -22,6 +22,9 @@
|
||||
#include "esp_hw_log.h"
|
||||
#include "soc/regi2c_bias.h"
|
||||
#include "regi2c_ctrl.h"
|
||||
#if !SOC_APM_SUPPORTED
|
||||
#include "hal/apm_hal.h"
|
||||
#endif
|
||||
|
||||
ESP_HW_LOG_ATTR_TAG(TAG, "pmu_sleep");
|
||||
|
||||
@@ -299,6 +302,13 @@ uint32_t pmu_sleep_start(uint32_t wakeup_opt, uint32_t reject_opt, uint32_t lslp
|
||||
bool pmu_sleep_finish(bool dslp)
|
||||
{
|
||||
(void)dslp;
|
||||
|
||||
#if !SOC_APM_SUPPORTED
|
||||
apm_hal_enable_ctrl_filter_all(false);
|
||||
#else
|
||||
ESP_STATIC_ASSERT(0, "TEE/APM retention need to be supported!");
|
||||
#endif
|
||||
|
||||
return pmu_ll_hp_is_sleep_reject(PMU_instance()->hal->dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user