From 92926bc80c5330d7ee71d0e56926264bce9dea3b Mon Sep 17 00:00:00 2001 From: Cooper Jr., Franklin Date: Fri, 16 Jun 2017 17:25:06 -0500 Subject: 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 Reviewed-by: Tom Rini --- include/boot_fit.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/boot_fit.h (limited to 'include/boot_fit.h') diff --git a/include/boot_fit.h b/include/boot_fit.h new file mode 100644 index 00000000000..b7d2462dd9b --- /dev/null +++ b/include/boot_fit.h @@ -0,0 +1,9 @@ +/* + * Copyright (C) 2017 Texas Instruments + * Written by Franklin Cooper Jr. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +int fdt_offset(void *fit); +void *locate_dtb_in_fit(void *fit); -- cgit v1.2.3