blob: d255744e8cb0904146dddd05d6f0f5c36627cbe6 [file] [log] [blame]
Sam Protsenko2f770a92018-08-16 23:34:12 +03001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C) Copyright 2018 Linaro Ltd.
4 * Sam Protsenko <semen.protsenko@linaro.org>
5 */
6
7#ifndef IMAGE_ANDROID_DT_H
8#define IMAGE_ANDROID_DT_H
9
10#include <linux/types.h>
11
12bool android_dt_check_header(ulong hdr_addr);
13bool android_dt_get_fdt_by_index(ulong hdr_addr, u32 index, ulong *addr,
14 u32 *size);
15
Simon Glass209ae762024-09-29 19:49:49 -060016#if !defined(CONFIG_XPL_BUILD)
Sam Protsenko2f770a92018-08-16 23:34:12 +030017void android_dt_print_contents(ulong hdr_addr);
18#endif
19
20#endif /* IMAGE_ANDROID_DT_H */