diff options
author | Tom Rini <trini@konsulko.com> | 2023-08-14 21:39:08 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-14 21:39:08 -0400 |
commit | 51171cdd6dc9af8e74bbdb1f3e46c15187f7e979 (patch) | |
tree | 7cea7f15d1eb78bf7116fb3432329647de04ffd7 /boot/bootmeth-uclass.c | |
parent | 831a80c2af322a80890cd9ef81c8ab7697788712 (diff) | |
parent | daffb0be2c839f3abe431cd68c772fae0e7e49ca (diff) |
Merge tag 'dm-next-14aug23' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
Enhance bootmeth_cros
Diffstat (limited to 'boot/bootmeth-uclass.c')
-rw-r--r-- | boot/bootmeth-uclass.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/boot/bootmeth-uclass.c b/boot/bootmeth-uclass.c index 175eb1de5e..1d157d54db 100644 --- a/boot/bootmeth-uclass.c +++ b/boot/bootmeth-uclass.c @@ -61,6 +61,18 @@ int bootmeth_set_bootflow(struct udevice *dev, struct bootflow *bflow, return ops->set_bootflow(dev, bflow, buf, size); } +#if CONFIG_IS_ENABLED(BOOTSTD_FULL) +int bootmeth_read_all(struct udevice *dev, struct bootflow *bflow) +{ + const struct bootmeth_ops *ops = bootmeth_get_ops(dev); + + if (!ops->read_all) + return -ENOSYS; + + return ops->read_all(dev, bflow); +} +#endif /* BOOTSTD_FULL */ + int bootmeth_boot(struct udevice *dev, struct bootflow *bflow) { const struct bootmeth_ops *ops = bootmeth_get_ops(dev); |