1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2013 Google, Inc
8 #include <linux/libfdt.h>
12 void dm_warn(const char *fmt, ...)
22 int list_count_items(struct list_head *head)
24 struct list_head *node;
27 list_for_each(node, head)
33 bool dm_fdt_pre_reloc(const void *blob, int offset)
35 if (fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL))
38 #ifdef CONFIG_TPL_BUILD
39 if (fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))
41 #elif defined(CONFIG_SPL_BUILD)
42 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL))
46 * In regular builds individual spl and tpl handling both
47 * count as handled pre-relocation for later second init.
49 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL) ||
50 fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))