]>
git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/core/util.c
2 * Copyright (c) 2013 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
13 void dm_warn(const char *fmt
, ...)
23 int list_count_items(struct list_head
*head
)
25 struct list_head
*node
;
28 list_for_each(node
, head
)
34 bool dm_fdt_pre_reloc(const void *blob
, int offset
)
36 if (fdt_getprop(blob
, offset
, "u-boot,dm-pre-reloc", NULL
))
39 #ifdef CONFIG_TPL_BUILD
40 if (fdt_getprop(blob
, offset
, "u-boot,dm-tpl", NULL
))
42 #elif defined(CONFIG_SPL_BUILD)
43 if (fdt_getprop(blob
, offset
, "u-boot,dm-spl", NULL
))
47 * In regular builds individual spl and tpl handling both
48 * count as handled pre-relocation for later second init.
50 if (fdt_getprop(blob
, offset
, "u-boot,dm-spl", NULL
) ||
51 fdt_getprop(blob
, offset
, "u-boot,dm-tpl", NULL
))