mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 11:55:21 +02:00
Bootloader: Support switching to Quad I/O mode during boot process
This commit is contained in:
@@ -46,30 +46,32 @@ config ESPTOOLPY_COMPRESSED
|
||||
decompress it on the fly before flashing it. For most payloads, this should result in a
|
||||
speed increase.
|
||||
|
||||
choice ESPTOOLPY_FLASHMODE
|
||||
choice FLASHMODE
|
||||
prompt "Flash SPI mode"
|
||||
default ESPTOOLPY_FLASHMODE_DIO
|
||||
default FLASHMODE_DIO
|
||||
help
|
||||
Mode the flash chip is flashed in, as well as the default mode for the
|
||||
binary to run in.
|
||||
|
||||
config ESPTOOLPY_FLASHMODE_QIO
|
||||
config FLASHMODE_QIO
|
||||
bool "QIO"
|
||||
config ESPTOOLPY_FLASHMODE_QOUT
|
||||
config FLASHMODE_QOUT
|
||||
bool "QOUT"
|
||||
config ESPTOOLPY_FLASHMODE_DIO
|
||||
config FLASHMODE_DIO
|
||||
bool "DIO"
|
||||
config ESPTOOLPY_FLASHMODE_DOUT
|
||||
config FLASHMODE_DOUT
|
||||
bool "DOUT"
|
||||
endchoice
|
||||
|
||||
# Note: we use esptool.py to flash bootloader in
|
||||
# dio mode for QIO/QOUT, bootloader then upgrades
|
||||
# itself to quad mode during initialisation
|
||||
config ESPTOOLPY_FLASHMODE
|
||||
string
|
||||
default "qio" if ESPTOOLPY_FLASHMODE_QIO
|
||||
default "qout" if ESPTOOLPY_FLASHMODE_QOUT
|
||||
default "dio" if ESPTOOLPY_FLASHMODE_DIO
|
||||
default "dout" if ESPTOOLPY_FLASHMODE_DOUT
|
||||
|
||||
default "dio" if FLASHMODE_QIO
|
||||
default "dio" if FLASHMODE_QOUT
|
||||
default "dio" if FLASHMODE_DIO
|
||||
default "dout" if FLASHMODE_DOUT
|
||||
|
||||
choice ESPTOOLPY_FLASHFREQ
|
||||
prompt "Flash SPI speed"
|
||||
|
||||
Reference in New Issue
Block a user