arch/xtensa/esp32s3: Fix bug regarding SPI flash operation mode

SPI flash operation modes - Dual Output (dout), Dual I/O (dio),
Quad Output (qout), Quad I/O (qio) and Octal (opi) were not being
properly selected. This commit fixes this behavior and the device
is now able to boot and initialize the proper SPI flash mode.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
Tiago Medicci Serrano
2025-02-26 14:12:43 -03:00
committed by Xiang Xiao
parent b81c4d3aa6
commit 622355b5c3
9 changed files with 253 additions and 120 deletions
+2
View File
@@ -42,6 +42,8 @@ else ifeq ($(CONFIG_ESP32S3_FLASH_MODE_QIO),y)
FLASH_MODE := qio
else ifeq ($(CONFIG_ESP32S3_FLASH_MODE_QOUT),y)
FLASH_MODE := qout
else ifeq ($(CONFIG_ESP32S3_FLASH_MODE_OCT),y)
FLASH_MODE := qio
endif
FLASH_FREQ := $(CONFIG_ESPRESSIF_FLASH_FREQ)