summaryrefslogtreecommitdiff
path: root/include/boot_fit.h
diff options
context:
space:
mode:
authorCooper Jr., Franklin <fcooper@ti.com>2017-06-16 17:25:06 -0500
committerTom Rini <trini@konsulko.com>2017-07-10 14:25:50 -0400
commit92926bc80c5330d7ee71d0e56926264bce9dea3b (patch)
treeccde9f6763d2ea61dce3775ec3328730949eeed7 /include/boot_fit.h
parent3863f840fa03f6b93672a5afff74f15d460cb911 (diff)
boot_fit: Create helper functions that can be used to select DTB out of FIT
Some platforms may append a FIT image to the U-boot image. This function aids in parsing the FIT image and selecting the correct DTB at runtime. Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/boot_fit.h')
-rw-r--r--include/boot_fit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/boot_fit.h b/include/boot_fit.h
new file mode 100644
index 0000000000..b7d2462dd9
--- /dev/null
+++ b/include/boot_fit.h
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2017 Texas Instruments
+ * Written by Franklin Cooper Jr. <fcooper@ti.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+int fdt_offset(void *fit);
+void *locate_dtb_in_fit(void *fit);