nuttx/boards/xtensa/esp32s3/esp32s3-eye/Kconfig
Tiago Medicci Serrano 8dca62f8f9 esp32s3: Limit MTD partition size according to the flash size
Whenever a MTD partition is set, this change limits its size
according to the flash size, avoiding the MTD partition to be
greater than the actual flash size.
2024-05-10 01:44:02 +08:00

67 lines
1.4 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_BOARD_ESP32S3_EYE
config ESP32S3_STORAGE_MTD_OFFSET
hex "Storage MTD base address in SPI Flash"
default 0x180000
depends on ESP32S3_MTD
---help---
MTD base address in SPI Flash.
config ESP32S3_STORAGE_MTD_SIZE
hex "Storage MTD size in SPI Flash"
default 0x100000
range 0x0 0x400000 if ESP32S3_FLASH_4M
range 0x0 0x800000 if ESP32S3_FLASH_8M
range 0x0 0x1000000 if ESP32S3_FLASH_16M
range 0x0 0x2000000 if ESP32S3_FLASH_32M
depends on ESP32S3_MTD
---help---
MTD size in SPI Flash.
choice ESP32S3_SPIFLASH_FS
prompt "Mount SPI Flash MTD on bring-up"
default ESP32S3_SPIFLASH_SMARTFS
depends on ESP32S3_MTD
optional
---help---
Mount the SPI Flash MTD with the selected File System format on board
bring-up.
If not selected, the MTD will be registered as a device node on /dev.
config ESP32S3_SPIFLASH_SMARTFS
bool "SmartFS"
select FS_SMARTFS
select MTD_SMART
config ESP32S3_SPIFLASH_NXFFS
bool "NXFFS"
select FS_NXFFS
config ESP32S3_SPIFLASH_SPIFFS
bool "SPIFFS"
select FS_SPIFFS
config ESP32S3_SPIFLASH_LITTLEFS
bool "LittleFS"
select FS_LITTLEFS
endchoice
config ESP32S3_EYE_LCD
bool "Enable ESP32-S3 LCD"
default n
select ESP32S3_SPI2
select SPI_CMDDATA
select LCD
select LCD_DEV
select LCD_ST7789
---help---
Enable board LCD support, IC is LCD_ST7789V.
endif # ARCH_BOARD_ESP32S3_EYE