4 * SPDX-License-Identifier: GPL-2.0+
10 #include <dm/uclass.h>
11 #include <dm/device.h>
12 #include <dm/uclass-internal.h>
13 #include <dm/device-internal.h>
16 DECLARE_GLOBAL_DATA_PTR;
18 void spl_board_init(void)
22 uclass_find_first_device(UCLASS_MISC, &dev);
24 for (; dev; uclass_find_next_device(&dev)) {
25 if (device_probe(dev))
35 preloader_console_init();
37 puts("Normal Boot\n");
40 #ifdef CONFIG_SPL_LOAD_FIT
41 int board_fit_config_name_match(const char *name)
43 /* Just empty function now - can't decide what to choose */
44 debug("%s: %s\n", __func__, name);
50 void board_init_f(ulong dummy)
52 /* Clear global data */
53 memset((void *)gd, 0, sizeof(gd_t));
56 memset(__bss_start, 0, __bss_end - __bss_start);
58 board_init_r(NULL, 0);