summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-03-01 13:54:49 -0500
committerTom Rini <[email protected]>2024-03-01 16:32:27 -0500
commitb9f5620a477a9e4290aeeddeed50898d49f7a792 (patch)
tree855ca7cea6a72d3053a7137dde8ada30a5673ad3 /include/init.h
parent5b825032957c2613ef2f8f639e949ae02cb5bdff (diff)
parentcbf3152f6afff25c25aa69ae06488671ca0aa765 (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon into next
- Reworks Qualcomm support to be more generic, dropping board specific build targets and relying on DT as the only source of truth - Switches all Qualcomm devices to use upstream devicetree
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index 9a1951d10a0..630d86729c4 100644
--- a/include/init.h
+++ b/include/init.h
@@ -168,6 +168,17 @@ defined(CONFIG_SAVE_PREV_BL_FDT_ADDR)
* Return: 0 if ok; -ENODATA on error
*/
int save_prev_bl_data(void);
+
+/**
+ * get_prev_bl_fdt_addr - When u-boot is chainloaded, get the address
+ * of the FDT passed by the previous bootloader.
+ *
+ * Return: the address of the FDT passed by the previous bootloader
+ * or 0 if not found.
+ */
+phys_addr_t get_prev_bl_fdt_addr(void);
+#else
+#define get_prev_bl_fdt_addr() 0LLU
#endif
/**