2 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <debug_uart.h>
10 #include <dm/pinctrl.h>
14 #include <asm/arch/cru_rk3368.h>
15 #include <asm/arch/grf_rk3368.h>
16 #include <asm/arch/hardware.h>
17 #include <asm/arch/periph.h>
18 #include <asm/arch/timer.h>
20 void board_debug_uart_init(void)
24 void board_init_f(ulong dummy)
26 struct udevice *pinctrl;
30 ret = spl_early_init();
32 debug("spl_early_init() failed: %d\n", ret);
36 /* Set up our preloader console */
37 ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl);
39 pr_err("%s: pinctrl init failed: %d\n", __func__, ret);
43 ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART0);
45 pr_err("%s: failed to set up console UART\n", __func__);
49 preloader_console_init();
51 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
53 debug("DRAM init failed: %d\n", ret);
58 u32 spl_boot_device(void)
60 return BOOT_DEVICE_MMC1;
63 #ifdef CONFIG_SPL_LOAD_FIT
64 int board_fit_config_name_match(const char *name)
66 /* Just empty function now - can't decide what to choose */
67 debug("%s: %s\n", __func__, name);