2 * Copyright (c) 2013 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
13 void dm_warn(const char *fmt, ...)
24 void dm_dbg(const char *fmt, ...)
34 int list_count_items(struct list_head *head)
36 struct list_head *node;
39 list_for_each(node, head)
45 bool dm_fdt_pre_reloc(const void *blob, int offset)
47 if (fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL))
50 #ifdef CONFIG_TPL_BUILD
51 if (fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))
53 #elif defined(CONFIG_SPL_BUILD)
54 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL))
58 * In regular builds individual spl and tpl handling both
59 * count as handled pre-relocation for later second init.
61 if (fdt_getprop(blob, offset, "u-boot,dm-spl", NULL) ||
62 fdt_getprop(blob, offset, "u-boot,dm-tpl", NULL))