summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-09-15 12:57:27 +0200
committerTom Rini <trini@konsulko.com>2017-10-05 21:31:04 -0400
commit02035d0086b3f9114463a9b9df38a5618ffe8a04 (patch)
tree24d3ecebfddfb911f4d45cced5713aa2b14f2e35 /include/image.h
parentd56b86eec32a700cdc16170ad8365ee7c6522f0e (diff)
downloadu-boot-02035d0086b3f9114463a9b9df38a5618ffe8a04.tar.gz
u-boot-02035d0086b3f9114463a9b9df38a5618ffe8a04.tar.bz2
u-boot-02035d0086b3f9114463a9b9df38a5618ffe8a04.zip
fit: If no matching config is found in fit_find_config_node(), use the default one
If board_fit_config_name_match() doesn't match any configuration node, then use the default one (if provided). Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index af98ed9f25..93451dd8a4 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1299,6 +1299,19 @@ void board_fit_image_post_process(void **p_image, size_t *p_size);
#define FDT_ERROR ((ulong)(-1))
ulong fdt_getprop_u32(const void *fdt, int node, const char *prop);
+
+/**
+ * fit_find_config_node() - Find the node for the best DTB in a FIT image
+ *
+ * A FIT image contains one or more DTBs. This function parses the
+ * configurations described in the FIT images and returns the node of
+ * the first matching DTB. To check if a DTB matches a board, this function
+ * calls board_fit_config_name_match(). If no matching DTB is found, it returns
+ * the node described by the default configuration if it exists.
+ *
+ * @fdt: pointer to flat device tree
+ * @return the node if found, -ve otherwise
+ */
int fit_find_config_node(const void *fdt);
/**