pmu: sleep initialization and sleep start support for esp32c6

Initialize the pmu sleep machine constant when pmu is initialized, and calculate
the pmu sleep time adjustment value and hardware configuration value according
to the machine constant during system sleep.

Calibrate fast OSC before each sleep and use the calibration value to calculate
PMU hardware wait cycles when use the fast OSC as the work clock.
This commit is contained in:
Li Shuai
2023-01-30 16:37:20 +08:00
committed by wuzhenghui
parent 6c1f58f135
commit 59cf87fe7d
14 changed files with 1542 additions and 158 deletions
+2
View File
@@ -18,6 +18,8 @@ entries:
rtc_pm (noflash_text)
rtc_sleep (noflash_text)
rtc_time (noflash_text)
if SOC_PMU_SUPPORTED = y:
pmu_sleep (noflash)
if IDF_TARGET_ESP32 = y || IDF_TARGET_ESP32S2 = y:
rtc_wdt (noflash_text)
if PERIPH_CTRL_FUNC_IN_IRAM = y: