File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
20
20
obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
21
21
obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
22
22
obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
23
+ obj-spl-$(CONFIG_ROCKCHIP_RK3328) += rk3328-board-spl.o
23
24
obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
24
25
obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
25
26
Original file line number Diff line number Diff line change
1
+ /*
2
+ * (C) Copyright 2016 Rockchip Electronics Co., Ltd
3
+ *
4
+ * SPDX-License-Identifier: GPL-2.0+
5
+ */
6
+
7
+ #include <common.h>
8
+ #include <debug_uart.h>
9
+ #include <dm.h>
10
+ #include <dm/pinctrl.h>
11
+ #include <ram.h>
12
+ #include <spl.h>
13
+ #include <asm/io.h>
14
+ #include <asm/arch/cru_rk3328.h>
15
+ #include <asm/arch/grf_rk3328.h>
16
+ #include <asm/arch/hardware.h>
17
+ #include <asm/arch/periph.h>
18
+ #include <asm/arch/timer.h>
19
+
20
+ DECLARE_GLOBAL_DATA_PTR ;
21
+
22
+ void board_debug_uart_init (void )
23
+ {
24
+ }
25
+
26
+ void board_init_f (ulong dummy )
27
+ {
28
+ struct udevice * dev ;
29
+ int ret ;
30
+
31
+ ret = spl_early_init ();
32
+ if (ret ) {
33
+ debug ("spl_early_init() failed: %d\n" , ret );
34
+ hang ();
35
+ }
36
+
37
+ preloader_console_init ();
38
+
39
+ ret = uclass_get_device (UCLASS_RAM , 0 , & dev );
40
+ if (ret ) {
41
+ debug ("DRAM init failed: %d\n" , ret );
42
+ return ;
43
+ }
44
+ }
45
+
46
+ u32 spl_boot_mode (const u32 boot_device )
47
+ {
48
+ return MMCSD_MODE_RAW ;
49
+ }
50
+
51
+ u32 spl_boot_device (void )
52
+ {
53
+ return BOOT_DEVICE_MMC1 ;
54
+ }
55
+
56
+ #ifdef CONFIG_SPL_LOAD_FIT
57
+ int board_fit_config_name_match (const char * name )
58
+ {
59
+ /* Just empty function now - can't decide what to choose */
60
+ debug ("%s: %s\n" , __func__ , name );
61
+
62
+ return 0 ;
63
+ }
64
+ #endif
You can’t perform that action at this time.
0 commit comments