1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright 2019 Siemens AG
12 #include <dm/uclass.h>
13 #include <dm/device.h>
14 #include <dm/uclass-internal.h>
15 #include <dm/device-internal.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();
39 void board_init_f(ulong dummy)
41 /* Clear global data */
42 memset((void *)gd, 0, sizeof(gd_t));
45 memset(__bss_start, 0, __bss_end - __bss_start);
47 board_init_r(NULL, 0);