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>
15 #include <asm/arch/sys_proto.h>
17 DECLARE_GLOBAL_DATA_PTR;
19 void spl_board_init(void)
23 uclass_find_first_device(UCLASS_MISC, &dev);
25 for (; dev; uclass_find_next_device(&dev)) {
26 if (device_probe(dev))
36 preloader_console_init();
38 puts("Normal Boot\n");
41 void spl_board_prepare_for_boot(void)
43 imx8_power_off_pd_devices(NULL, 0);
46 #ifdef CONFIG_SPL_LOAD_FIT
47 int board_fit_config_name_match(const char *name)
49 /* Just empty function now - can't decide what to choose */
50 debug("%s: %s\n", __func__, name);
56 void board_init_f(ulong dummy)
58 /* Clear global data */
59 memset((void *)gd, 0, sizeof(gd_t));
62 memset(__bss_start, 0, __bss_end - __bss_start);
64 board_init_r(NULL, 0);