]> git.baikalelectronics.ru Git - uboot.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)
commitb58444f76901b8402737ff6d71e7ac9cf03afc0d
tree0195ba57f94d4fca102bf5677d494f2727aa9fe6
parent1fd4d522fd97b86cb366b5bab54b2176203d7b3e
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