4 * SPDX-License-Identifier: GPL-2.0+
11 #include <dm/uclass.h>
12 #include <dm/device.h>
13 #include <dm/uclass-internal.h>
14 #include <dm/device-internal.h>
16 #include <asm/arch/sys_proto.h>
18 DECLARE_GLOBAL_DATA_PTR;
20 void spl_board_init(void)
24 uclass_find_first_device(UCLASS_MISC, &dev);
26 for (; dev; uclass_find_next_device(&dev)) {
27 if (device_probe(dev))
37 preloader_console_init();
39 puts("Normal Boot\n");
42 void spl_board_prepare_for_boot(void)
44 imx8_power_off_pd_devices(NULL, 0);
47 #ifdef CONFIG_SPL_LOAD_FIT
48 int board_fit_config_name_match(const char *name)
50 /* Just empty function now - can't decide what to choose */
51 debug("%s: %s\n", __func__, name);
57 void board_init_f(ulong dummy)
59 /* Clear global data */
60 memset((void *)gd, 0, sizeof(gd_t));
63 memset(__bss_start, 0, __bss_end - __bss_start);
65 board_init_r(NULL, 0);