Skip to content

Commit 430943b

Browse files
committed
feat(p4): Add rev3 check on supported frequencies
1 parent d47a7bd commit 430943b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/esp32/esp32-hal-cpu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@ const char *getSupportedCpuFrequencyMhz(uint8_t xtal) {
206206
int pos = 0;
207207

208208
#if TARGET_CPU_FREQ_MAX_400
209-
// P4 does not support 400MHz yet
209+
#if CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL < 300
210210
pos += snprintf(supported_frequencies + pos, 256 - pos, "360");
211+
#else
212+
pos += snprintf(supported_frequencies + pos, 256 - pos, "400");
213+
#endif
211214
#elif TARGET_CPU_FREQ_MAX_240
212215
#if CONFIG_IDF_TARGET_ESP32
213216
if (!REG_GET_BIT(EFUSE_BLK0_RDATA3_REG, EFUSE_RD_CHIP_CPU_FREQ_RATED) || !REG_GET_BIT(EFUSE_BLK0_RDATA3_REG, EFUSE_RD_CHIP_CPU_FREQ_LOW)) {

0 commit comments

Comments
 (0)