change(esp_hw_support): force top domain power up during sleep

This commit is contained in:
Li Shuai
2025-06-04 21:03:02 +08:00
parent 087727a693
commit 23892d857a
3 changed files with 10 additions and 0 deletions

View File

@@ -2441,6 +2441,11 @@ FORCE_INLINE_ATTR bool top_domain_pd_allowed(void) {
#if SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
top_pd_allowed &= (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON);
#endif
#if SOC_PM_TOP_PD_NOT_ALLOWED
// TODO: PM-436, Need to use efuse_hal_chip_revision() to determine whether
// the TOP domain power-down is allowed
top_pd_allowed = false;
#endif
return top_pd_allowed;
}

View File

@@ -1615,6 +1615,10 @@ config SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN
bool
default y
config SOC_PM_TOP_PD_NOT_ALLOWED
bool
default y
config SOC_PM_PAU_LINK_NUM
int
default 5

View File

@@ -636,6 +636,7 @@
#define SOC_PM_CPU_RETENTION_BY_SW (1)
#define SOC_PM_MODEM_RETENTION_BY_REGDMA (1)
#define SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN (1)
#define SOC_PM_TOP_PD_NOT_ALLOWED (1)
#define SOC_PM_PAU_LINK_NUM (5)
#define SOC_PM_PAU_REGDMA_LINK_CONFIGURABLE (1)