Skip to content

Commit 5fbc742

Browse files
committed
fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain
1 parent f031cd3 commit 5fbc742

File tree

13 files changed

+39
-7
lines changed

13 files changed

+39
-7
lines changed

components/esp_hw_support/sleep_modes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,9 @@ FORCE_INLINE_ATTR bool top_domain_pd_allowed(void) {
23142314
#if SOC_PM_SUPPORT_MODEM_PD
23152315
top_pd_allowed &= modem_domain_pd_allowed();
23162316
#endif
2317+
#if SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
23172318
top_pd_allowed &= (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON);
2319+
#endif
23182320

23192321
return top_pd_allowed;
23202322
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ config SOC_XTAL_SUPPORT_48M
267267
bool
268268
default y
269269

270+
config SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
271+
bool
272+
default y
273+
270274
config SOC_AES_SUPPORT_DMA
271275
bool
272276
default y

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@
8686
#define SOC_BITSCRAMBLER_SUPPORTED 1
8787

8888
/*-------------------------- XTAL CAPS ---------------------------------------*/
89-
#define SOC_XTAL_SUPPORT_40M 1
90-
#define SOC_XTAL_SUPPORT_48M 1
89+
#define SOC_XTAL_SUPPORT_40M 1
90+
#define SOC_XTAL_SUPPORT_48M 1
91+
#define SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN 1
9192

9293
/*-------------------------- AES CAPS -----------------------------------------*/
9394
#define SOC_AES_SUPPORT_DMA (1)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ config SOC_XTAL_SUPPORT_40M
247247
bool
248248
default y
249249

250+
config SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
251+
bool
252+
default y
253+
250254
config SOC_AES_SUPPORT_DMA
251255
bool
252256
default y

components/soc/esp32c6/include/soc/soc_caps.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
#define SOC_PM_SUPPORTED 1
8080

8181
/*-------------------------- XTAL CAPS ---------------------------------------*/
82-
#define SOC_XTAL_SUPPORT_40M 1
82+
#define SOC_XTAL_SUPPORT_40M 1
83+
#define SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN 1
8384

8485
/*-------------------------- AES CAPS -----------------------------------------*/
8586
#define SOC_AES_SUPPORT_DMA (1)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ config SOC_XTAL_SUPPORT_40M
183183
bool
184184
default y
185185

186+
config SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
187+
bool
188+
default y
189+
186190
config SOC_ADC_DIG_CTRL_SUPPORTED
187191
bool
188192
default y

components/soc/esp32c61/include/soc/soc_caps.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
#define SOC_ECDSA_SUPPORTED 1
6767
#define SOC_SPIRAM_SUPPORTED 1
6868
/*-------------------------- XTAL CAPS ---------------------------------------*/
69-
#define SOC_XTAL_SUPPORT_40M 1
69+
#define SOC_XTAL_SUPPORT_40M 1
70+
#define SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN 1
7071

7172
/*-------------------------- ADC CAPS -------------------------------*/
7273
/*!< SAR ADC Module*/

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ config SOC_XTAL_SUPPORT_32M
243243
bool
244244
default y
245245

246+
config SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
247+
bool
248+
default y
249+
246250
config SOC_AES_SUPPORT_DMA
247251
bool
248252
default y

components/soc/esp32h2/include/soc/soc_caps.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
#define SOC_PM_SUPPORTED 1
9595

9696
/*-------------------------- XTAL CAPS ---------------------------------------*/
97-
#define SOC_XTAL_SUPPORT_32M 1
97+
#define SOC_XTAL_SUPPORT_32M 1
98+
#define SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN 1
9899

99100
/*-------------------------- AES CAPS -----------------------------------------*/
100101
#define SOC_AES_SUPPORT_DMA (1)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ config SOC_XTAL_SUPPORT_32M
9595
bool
9696
default y
9797

98+
config SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
99+
bool
100+
default y
101+
98102
config SOC_AES_SUPPORT_DMA
99103
bool
100104
default y

0 commit comments

Comments
 (0)