summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-22 22:55:55 -0700
committerTom Rini <trini@konsulko.com>2016-03-14 19:18:30 -0400
commit4b307f2387da95d3b91f1fef8c5b6dc2108ddb4d (patch)
treec9d609ec8509b3eb6dbf9e52e76789a62326efe9 /include
parent529fd1886639e5348a6f430d931eedd05c4cc93e (diff)
downloadu-boot-imx-4b307f2387da95d3b91f1fef8c5b6dc2108ddb4d.zip
u-boot-imx-4b307f2387da95d3b91f1fef8c5b6dc2108ddb4d.tar.gz
u-boot-imx-4b307f2387da95d3b91f1fef8c5b6dc2108ddb4d.tar.bz2
spl: Add a way for boards to select which device tree to load
SPL calls this function with each device tree it can find in the FIT. The board should implement this function, using whatever hardware detection it can muster to determine the correct device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/image.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 92c7884..0605280 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1154,4 +1154,17 @@ ulong android_image_get_kload(const struct andr_img_hdr *hdr);
#endif /* CONFIG_ANDROID_BOOT_IMAGE */
+/**
+ * board_fit_config_name_match() - Check for a matching board name
+ *
+ * This is used when SPL loads a FIT containing multiple device tree files
+ * and wants to work out which one to use. The description of each one is
+ * passed to this function. The description comes from the 'description' field
+ * in each (FDT) image node.
+ *
+ * @name: Device tree description
+ * @return 0 if this device tree should be used, non-zero to try the next
+ */
+int board_fit_config_name_match(const char *name);
+
#endif /* __IMAGE_H__ */