summaryrefslogtreecommitdiff
path: root/src/include/fit.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-05-16 16:12:04 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 09:22:31 +0000
commit21b0b1adec23d2f67e51a47207e691fb41f576dd (patch)
tree37630599fa21b408e58484c276daa72930a37b1d /src/include/fit.h
parentfec4206299aefba05cae3bb82421635543ca1a2b (diff)
downloadcoreboot-21b0b1adec23d2f67e51a47207e691fb41f576dd.tar.xz
fit: Add overlay support
This patch adds support to boot FIT image configurations consisting of a base device tree and one or more overlays. Since extracting the right compatible string from overlay FDTs is problematic, we'll only support this for FIT images that have the compatible string pulled out into the config node. This patch was adapted from depthcharge's http://crosreview.com/1555293 Change-Id: I0943f9a1869c9e416887c7ff16e33f7d91b74989 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32873 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/fit.h')
-rw-r--r--src/include/fit.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/fit.h b/src/include/fit.h
index 758ee70c9c..1c90aca1ff 100644
--- a/src/include/fit.h
+++ b/src/include/fit.h
@@ -24,8 +24,7 @@
#include <list.h>
#include <program_loading.h>
-struct fit_image_node
-{
+struct fit_image_node {
const char *name;
void *data;
uint32_t size;
@@ -34,11 +33,11 @@ struct fit_image_node
struct list_node list_node;
};
-struct fit_config_node
-{
+struct fit_config_node {
const char *name;
struct fit_image_node *kernel;
struct fit_image_node *fdt;
+ struct list_node overlays;
struct fit_image_node *ramdisk;
struct fdt_property compat;
int compat_rank;
@@ -48,6 +47,11 @@ struct fit_config_node
struct list_node list_node;
};
+struct fit_overlay_chain {
+ struct fit_image_node *overlay;
+ struct list_node list_node;
+};
+
/*
* Updates the cmdline in the devicetree.
*/