1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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>
This commit is contained in:
Cooper Jr., Franklin
2017-06-16 17:25:06 -05:00
committed by Tom Rini
parent 3863f840fa
commit 92926bc80c
5 changed files with 100 additions and 0 deletions

9
include/boot_fit.h Normal file
View File

@@ -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);