xref: /rk3399_rockchip-uboot/include/image-android-dt.h (revision e91b3373a9bad04a313764685949e4e553445872)
1 /*
2  * (C) Copyright 2018 Linaro Ltd.
3  * Sam Protsenko <semen.protsenko@linaro.org>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef IMAGE_ANDROID_DT_H
9 #define IMAGE_ANDROID_DT_H
10 
11 #include <linux/types.h>
12 
13 bool android_dt_check_header(ulong hdr_addr);
14 bool android_dt_get_fdt_by_index(ulong hdr_addr, u32 index, ulong *addr,
15 				 u32 *size);
16 
17 #if !defined(CONFIG_SPL_BUILD)
18 void android_dt_print_contents(ulong hdr_addr);
19 #endif
20 
21 #endif /* IMAGE_ANDROID_DT_H */
22