2 * Copyright (c) 2013 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
11 void dm_warn(const char *fmt, ...)
20 void dm_dbg(const char *fmt, ...)
29 int list_count_items(struct list_head *head)
31 struct list_head *node;
34 list_for_each(node, head)
40 bool dm_fdt_pre_reloc(const void *blob, int offset)
42 if (fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL))
45 #ifdef CONFIG_TPL_BUILD
46 if (fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))
48 #elif defined(CONFIG_SPL_BUILD)
49 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL))
53 * In regular builds individual spl and tpl handling both
54 * count as handled pre-relocation for later second init.
56 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL) ||
57 fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))