aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:48:03 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:41 -0500
commit0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e (patch)
tree0195ba57f94d4fca102bf5677d494f2727aa9fe6 /drivers/mtd/spi/Kconfig
parent081bdc52c158dd3a4f73910cde3d7e70a5932d56 (diff)
downloadu-boot-0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e.zip
u-boot-0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e.tar.gz
u-boot-0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e.tar.bz2
bootstd: Add a SPI flash bootdev
Add a bootdev for SPI flash so that these devices can be used with standard boot. It only supports loading a script. Add a special case for the label, since we want to use "spi", not "spi_flash". Enable the new bootdev on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/spi/Kconfig')
-rw-r--r--drivers/mtd/spi/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index 7b858a3..a9617c6 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -80,6 +80,14 @@ config SF_DEFAULT_SPEED
if SPI_FLASH
+config BOOTDEV_SPI_FLASH
+ bool "SPI Flash bootdev support"
+ help
+ Enable a boot device for SPI flash. This allows reading a script
+ from SPI flash so that it can be used to boot an Operating System.
+
+ If unsure, say N
+
config SPI_FLASH_SFDP_SUPPORT
bool "SFDP table parsing support for SPI NOR flashes"
depends on !SPI_FLASH_BAR