1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2008 Semihalf
9 /* Make sure to include u-boot version of libfdt include files */
10 #include "../include/linux/libfdt.h"
11 #include "../include/fdt_support.h"
14 * fdt_remove_unused_strings() - Remove any unused strings from an FDT
16 * This creates a new device tree in @new with unused strings removed. The
17 * called can then use fdt_pack() to minimise the space consumed.
19 * @old: Old device tree blog
20 * @new: Place to put new device tree blob, which must be as large as
24 * -FDT_ERR_BADOFFSET, corrupt device tree
25 * -FDT_ERR_NOSPACE, out of space, which should not happen unless there
26 * is something very wrong with the device tree input
28 int fdt_remove_unused_strings(const void *old, void *new);
31 * fit_check_sign() - Check a signature in a FIT
34 * @key: Key FDT blob to check against
35 * @fit_uname_config: Name of configuration to check (NULL for default)
36 * @return 0 if OK, -ve if signature failed
38 int fit_check_sign(const void *fit, const void *key,
39 const char *fit_uname_config);
41 #endif /* __FDT_HOST_H__ */