rockchip: rk3399: remove pinctrl init in spl_board_init
[oweals/u-boot.git] / arch / arm / mach-rockchip / rk3368-board-spl.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
4  */
5
6 #include <common.h>
7 #include <debug_uart.h>
8 #include <dm.h>
9 #include <ram.h>
10 #include <spl.h>
11 #include <asm/io.h>
12 #include <asm/arch-rockchip/periph.h>
13
14 void board_init_f(ulong dummy)
15 {
16         struct udevice *dev;
17         int ret;
18
19         ret = spl_early_init();
20         if (ret) {
21                 debug("spl_early_init() failed: %d\n", ret);
22                 hang();
23         }
24
25         preloader_console_init();
26
27         ret = uclass_get_device(UCLASS_RAM, 0, &dev);
28         if (ret) {
29                 debug("DRAM init failed: %d\n", ret);
30                 return;
31         }
32 }
33
34 u32 spl_boot_device(void)
35 {
36         return BOOT_DEVICE_MMC1;
37 }
38
39 #ifdef CONFIG_SPL_LOAD_FIT
40 int board_fit_config_name_match(const char *name)
41 {
42         /* Just empty function now - can't decide what to choose */
43         debug("%s: %s\n", __func__, name);
44
45         return 0;
46 }
47 #endif