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 +++++++++ include/image.h | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 include/boot_fit.h (limited to 'include') 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); diff --git a/include/image.h b/include/image.h index 1d763b33b83..c6f1513220a 100644 --- a/include/image.h +++ b/include/image.h @@ -1272,6 +1272,9 @@ 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); +int fit_find_config_node(const void *fdt); + /** * Mapping of image types to function handlers to be invoked on the associated * loaded images -- cgit v1.3.1