arch/xtensa/espressif: Fix ESP32-S2 SPI flash frequency selection

This commit fixes the SPI flash frequency selection for ESP32-S2,
enabling the Kconfig macros to be selected when ESP32-S2 SoC is
enabled. Please note that this was recently changed to make it
compatible with already existing SPI flash Kconfig macros for ESP32
and ESP32-S3 and it introduced this regression for ESP32-S2.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
Tiago Medicci Serrano
2025-04-08 11:37:35 -03:00
committed by Xiang Xiao
parent 39a992b0b1
commit 05e63e31c4
+5 -5
View File
@@ -761,7 +761,7 @@ endchoice # ESPRESSIF_FLASH_MODE
choice ESPRESSIF_FLASH_FREQ
prompt "SPI Flash frequency"
default ESPRESSIF_FLASH_FREQ_120M if ESP32S3_FLASH_FREQ_120M
default ESPRESSIF_FLASH_FREQ_80M if ESP32_FLASH_FREQ_80M || ESP32S3_FLASH_FREQ_80M
default ESPRESSIF_FLASH_FREQ_80M if ESP32_FLASH_FREQ_80M || ARCH_CHIP_ESP32S2 || ESP32S3_FLASH_FREQ_80M
default ESPRESSIF_FLASH_FREQ_40M if ESP32_FLASH_FREQ_40M || ESP32S3_FLASH_FREQ_40M
default ESPRESSIF_FLASH_FREQ_26M if ESP32_FLASH_FREQ_26M
default ESPRESSIF_FLASH_FREQ_20M if ESP32_FLASH_FREQ_20M || ESP32S3_FLASH_FREQ_20M
@@ -775,19 +775,19 @@ config ESPRESSIF_FLASH_FREQ_120M
config ESPRESSIF_FLASH_FREQ_80M
bool "80 MHz"
depends on ESP32_FLASH_FREQ_80M || ESP32S3_FLASH_FREQ_80M
depends on ESP32_FLASH_FREQ_80M || ARCH_CHIP_ESP32S2 || ESP32S3_FLASH_FREQ_80M
config ESPRESSIF_FLASH_FREQ_40M
bool "40 MHz"
depends on ESP32_FLASH_FREQ_40M || ESP32S3_FLASH_FREQ_40M
depends on ESP32_FLASH_FREQ_40M || ARCH_CHIP_ESP32S2 || ESP32S3_FLASH_FREQ_40M
config ESPRESSIF_FLASH_FREQ_26M
bool "26 MHz"
depends on ESP32_FLASH_FREQ_26M
depends on ESP32_FLASH_FREQ_26M || ARCH_CHIP_ESP32S2
config ESPRESSIF_FLASH_FREQ_20M
bool "20 MHz"
depends on ESP32_FLASH_FREQ_20M || ESP32S3_FLASH_FREQ_20M
depends on ESP32_FLASH_FREQ_20M || ARCH_CHIP_ESP32S2 || ESP32S3_FLASH_FREQ_20M
endchoice # ESPRESSIF_FLASH_FREQ