Skip to content

Commit 23892d8

Browse files
committed
change(esp_hw_support): force top domain power up during sleep
1 parent 087727a commit 23892d8

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
@@ -1615,6 +1615,10 @@ config SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN
16151615
bool
16161616
default y
16171617

1618+
config SOC_PM_TOP_PD_NOT_ALLOWED
1619+
bool
1620+
default y
1621+
16181622
config SOC_PM_PAU_LINK_NUM
16191623
int
16201624
default 5

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@
636636
#define SOC_PM_CPU_RETENTION_BY_SW (1)
637637
#define SOC_PM_MODEM_RETENTION_BY_REGDMA (1)
638638
#define SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN (1)
639+
#define SOC_PM_TOP_PD_NOT_ALLOWED (1)
639640

640641
#define SOC_PM_PAU_LINK_NUM (5)
641642
#define SOC_PM_PAU_REGDMA_LINK_CONFIGURABLE (1)

0 commit comments

Comments
 (0)