]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Add a SPI flash bootdev
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:03 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commit0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e
tree0195ba57f94d4fca102bf5677d494f2727aa9fe6
parent081bdc52c158dd3a4f73910cde3d7e70a5932d56
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>
boot/bootdev-uclass.c
boot/bootflow.c
configs/sandbox_defconfig
configs/sandbox_flattree_defconfig
drivers/mtd/spi/Kconfig
drivers/mtd/spi/Makefile
drivers/mtd/spi/sf-uclass.c
drivers/mtd/spi/sf_bootdev.c [new file with mode: 0644]
include/bootflow.h
test/boot/bootdev.c