mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
0687daf2c8
The kconfig options are moved to the component where they are used, mostly esp_hw_support and esp_system.
110 lines
3.2 KiB
Plaintext
110 lines
3.2 KiB
Plaintext
config SPIRAM
|
|
bool "Support for external, SPI-connected RAM"
|
|
default "n"
|
|
help
|
|
This enables support for an external SPI RAM chip, connected in parallel with the
|
|
main SPI flash chip.
|
|
|
|
menu "SPI RAM config"
|
|
depends on SPIRAM
|
|
|
|
config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
|
bool
|
|
default "y"
|
|
|
|
choice SPIRAM_MODE
|
|
prompt "Mode (QUAD/OCT) of SPI RAM chip in use"
|
|
default SPIRAM_MODE_QUAD
|
|
|
|
config SPIRAM_MODE_QUAD
|
|
bool "Quad Mode PSRAM"
|
|
|
|
config SPIRAM_MODE_OCT
|
|
bool "Octal Mode PSRAM"
|
|
endchoice
|
|
|
|
choice SPIRAM_TYPE
|
|
prompt "Type of SPIRAM chip in use"
|
|
default SPIRAM_TYPE_AUTO
|
|
|
|
config SPIRAM_TYPE_AUTO
|
|
bool "Auto-detect"
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM16
|
|
bool "ESP-PSRAM16 or APS1604"
|
|
depends on SPIRAM_MODE_QUAD
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM32
|
|
bool "ESP-PSRAM32"
|
|
depends on SPIRAM_MODE_QUAD
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM64
|
|
bool "ESP-PSRAM64 , LY68L6400 or APS6408"
|
|
endchoice
|
|
|
|
config SPIRAM_SIZE
|
|
int
|
|
default -1 if SPIRAM_TYPE_AUTO
|
|
default 2097152 if SPIRAM_TYPE_ESPPSRAM16
|
|
default 4194304 if SPIRAM_TYPE_ESPPSRAM32
|
|
default 8388608 if SPIRAM_TYPE_ESPPSRAM64
|
|
default 16777216 if SPIRAM_TYPE_ESPPSRAM128
|
|
default 33554432 if SPIRAM_TYPE_ESPPSRAM256
|
|
default 0
|
|
|
|
menu "PSRAM Clock and CS IO for ESP32S3"
|
|
depends on SPIRAM
|
|
config DEFAULT_PSRAM_CLK_IO
|
|
int "PSRAM CLK IO number"
|
|
range 0 33
|
|
default 30
|
|
help
|
|
The PSRAM Clock IO can be any unused GPIO, please refer to your hardware design.
|
|
|
|
config DEFAULT_PSRAM_CS_IO
|
|
int "PSRAM CS IO number"
|
|
range 0 33
|
|
default 26
|
|
help
|
|
The PSRAM CS IO can be any unused GPIO, please refer to your hardware design.
|
|
endmenu
|
|
config SPIRAM_FETCH_INSTRUCTIONS
|
|
bool "Cache fetch instructions from SPI RAM"
|
|
default n
|
|
help
|
|
If enabled, instruction in flash will be copied into SPIRAM.
|
|
If SPIRAM_RODATA also enabled, you can run the instruction when erasing or programming the flash.
|
|
|
|
config SPIRAM_RODATA
|
|
bool "Cache load read only data from SPI RAM"
|
|
default n
|
|
help
|
|
If enabled, rodata in flash will be copied into SPIRAM.
|
|
If SPIRAM_FETCH_INSTRUCTIONS is also enabled,
|
|
you can run the instruction when erasing or programming the flash.
|
|
|
|
choice SPIRAM_SPEED
|
|
prompt "Set RAM clock speed"
|
|
default SPIRAM_SPEED_40M
|
|
help
|
|
Select the speed for the SPI RAM chip.
|
|
|
|
config SPIRAM_SPEED_120M
|
|
depends on SPIRAM_MODE_QUAD
|
|
bool "120MHz clock speed"
|
|
config SPIRAM_SPEED_80M
|
|
bool "80MHz clock speed"
|
|
config SPIRAM_SPEED_40M
|
|
bool "40Mhz clock speed"
|
|
endchoice
|
|
|
|
config SPIRAM_SPEED
|
|
int
|
|
default 120 if SPIRAM_SPEED_120M
|
|
default 80 if SPIRAM_SPEED_80M
|
|
default 40 if SPIRAM_SPEED_40M
|
|
|
|
source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" # insert non-chip-specific items here
|
|
|
|
endmenu
|