Skip to content

Commit 7912f9f

Browse files
committed
change(esp_hw_support): force top domain power up during sleep
1 parent f8832b5 commit 7912f9f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

components/esp_hw_support/sleep_modes.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,11 @@ FORCE_INLINE_ATTR bool top_domain_pd_allowed(void) {
24412441
#if SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
24422442
top_pd_allowed &= (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON);
24432443
#endif
2444+
#if SOC_PM_TOP_PD_NOT_ALLOWED
2445+
// TODO: PM-436, Need to use efuse_hal_chip_revision() to determine whether
2446+
// the TOP domain power-down is allowed
2447+
top_pd_allowed = false;
2448+
#endif
24442449

24452450
return top_pd_allowed;
24462451
}

components/soc/esp32c5/include/soc/Kconfig.soc_caps.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,10 @@ config SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN
16311631
bool
16321632
default y
16331633

1634+
config SOC_PM_TOP_PD_NOT_ALLOWED
1635+
bool
1636+
default y
1637+
16341638
config SOC_PM_PAU_LINK_NUM
16351639
int
16361640
default 5

components/soc/esp32c5/include/soc/soc_caps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@
640640
#define SOC_PM_CPU_RETENTION_BY_SW (1)
641641
#define SOC_PM_MODEM_RETENTION_BY_REGDMA (1)
642642
#define SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN (1)
643+
#define SOC_PM_TOP_PD_NOT_ALLOWED (1)
643644

644645
#define SOC_PM_PAU_LINK_NUM (5)
645646
#define SOC_PM_PAU_REGDMA_LINK_CONFIGURABLE (1)

0 commit comments

Comments
 (0)