]> git.dujemihanovic.xyz Git - u-boot.git/commit
FWU: Add helper functions for accessing FWU metadata
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 21 Oct 2022 12:45:59 +0000 (18:15 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 18:47:32 +0000 (14:47 -0400)
commit7d6e2c54b7dd057f50bf0116c9e803e214dbe74c
tree3fe4cd167400939991274f5fa70c80661580bf79
parentd70c4a0a20c3edba3375f51426da2aa7096f58df
FWU: Add helper functions for accessing FWU metadata

Add weak functions for getting the update index value and dfu
alternate number needed for FWU Multi Bank update
functionality.

The current implementation for getting the update index value is for
platforms with 2 banks. If a platform supports more than 2 banks, it
can implement it's own function. The function to get the dfu alternate
number has been added for platforms with GPT partitioned storage
devices. Platforms with other storage partition scheme need to
implement their own function.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/fwu.h
lib/fwu_updates/fwu.c
lib/fwu_updates/fwu_gpt.c [new file with mode: 0644]