Skip to content

Commit

Permalink
upl: Add support for writing a upl handoff
Browse files Browse the repository at this point in the history
Universal Payload provides a standard way of handing off control between
two firmware phases. Add support for writing the handoff information from
a structure.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Aug 9, 2024
1 parent 90469da commit 3848e97
Show file tree
Hide file tree
Showing 3 changed files with 631 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boot/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ config BOOTMETH_SCRIPT
config UPL
bool "upl - Universal Payload Specification"
imply UPL_READ
imply UPL_WRITE
help
Provides support for UPL payloads and handoff information. U-Boot
supports generating and accepting handoff information. The mkimage
Expand All @@ -762,6 +763,13 @@ config UPL_READ
which can be used elsewhere in U-Boot. This is just the reading
implementation, useful for trying it out.

config UPL_WRITE
bool "upl - Support writing a Universal Payload handoff"
help
Provides support for encoding a UPL-format payload from a C structure
so it can be passed to another program. This is just the writing
implementation, useful for trying it out.

endif # UPL

endif # BOOTSTD
Expand Down
1 change: 1 addition & 0 deletions boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ obj-$(CONFIG_$(SPL_TPL_)FDT_SIMPLEFB) += fdt_simplefb.o

obj-$(CONFIG_$(SPL_TPL_)UPL) += upl_common.o
obj-$(CONFIG_$(SPL_TPL_)UPL_READ) += upl_read.o
obj-$(CONFIG_$(SPL_TPL_)UPL_WRITE) += upl_write.o

obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += fdt_region.o
Expand Down
Loading

0 comments on commit 3848e97

Please sign in to comment.