Skip to content

Commit 29b7f65

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'fix/fix_c6_rtc_periph_depends_on_top_v5.1' into 'release/v5.1'
fix(esp_hw_support): add dependency of the TOP domain to the RTC_PERIPH domain for esp32c6 (v5.1) See merge request espressif/esp-idf!43387
2 parents 557b6ac + d928b84 commit 29b7f65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/esp_hw_support/sleep_modes.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,13 @@ static uint32_t get_power_down_flags(void)
23082308
}
23092309
#endif
23102310

2311+
#if CONFIG_IDF_TARGET_ESP32C6
2312+
if (!(pd_flags & PMU_SLEEP_PD_TOP)) {
2313+
// TOP power domain depends on the RTC_PERIPH power domain on ESP32C6, RTC_PERIPH should only be disabled when the TOP domain is down.
2314+
pd_flags &= ~RTC_SLEEP_PD_RTC_PERIPH;
2315+
}
2316+
#endif
2317+
23112318
return pd_flags;
23122319
}
23132320

0 commit comments

Comments
 (0)