bootstd: Add a new bootmeth method to set the bootflow
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:01 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commit22061d3d2ad10e1c67e36282a8c97f505a62c252
treed46f11617a3b8ef265937b9c74c33f451046b6c2
parent74ebfb60f6890ab46d5233d13941ff9d6eea2312
bootstd: Add a new bootmeth method to set the bootflow

Normally the bootmeth driver reads the bootflow from the bootdev, since
it knows the correct way to do it.

However it is easier for some bootdevs to handle this themselves. For
example, reading from SPI flash is quite different from other devices.

Add a way for the bootdev to pass a bootflow to the bootmeth, so that
this can be supported.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth-uclass.c
include/bootmeth.h