1 // SPDX-License-Identifier: GPL-2.0+
12 #include <dm/uclass.h>
13 #include <dm/device.h>
14 #include <dm/uclass-internal.h>
15 #include <dm/device-internal.h>
18 DECLARE_GLOBAL_DATA_PTR;
20 void spl_board_init(void)
25 uclass_find_first_device(UCLASS_MISC, &dev);
27 for (; dev; uclass_find_next_device(&dev)) {
28 if (device_probe(dev))
32 offset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "nxp,imx8-pd");
33 while (offset != -FDT_ERR_NOTFOUND) {
34 lists_bind_fdt(gd->dm_root, offset_to_ofnode(offset),
36 offset = fdt_node_offset_by_compatible(gd->fdt_blob, offset,
40 uclass_find_first_device(UCLASS_POWER_DOMAIN, &dev);
42 for (; dev; uclass_find_next_device(&dev)) {
43 if (device_probe(dev))
53 preloader_console_init();
55 puts("Normal Boot\n");
58 #if (IS_ENABLED(CONFIG_SPL_LOAD_FIT))
59 int board_fit_config_name_match(const char *name)
61 /* Just empty function now - can't decide what to choose */
62 debug("%s: %s\n", __func__, name);
68 void board_init_f(ulong dummy)
70 /* Clear global data */
71 memset((void *)gd, 0, sizeof(gd_t));
74 memset(__bss_start, 0, __bss_end - __bss_start);
76 board_init_r(NULL, 0);