xref: /rk3399_rockchip-uboot/include/configs/evb_rv1126.h (revision e091b6c996a68a6a0faa2bd3ffdd90b3ba5f44ce)
1 /*
2  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef __EVB_RV1126_H
8 #define __EVB_RV1126_H
9 
10 #include <configs/rv1126_common.h>
11 
12 #define CONFIG_SUPPORT_EMMC_RPMB
13 
14 #define CONFIG_SYS_MMC_ENV_DEV 0
15 
16 #define ROCKCHIP_DEVICE_SETTINGS \
17 			"stdout=serial,vidconsole\0" \
18 			"stderr=serial,vidconsole\0"
19 #undef CONFIG_CONSOLE_SCROLL_LINES
20 #define CONFIG_CONSOLE_SCROLL_LINES            10
21 
22 #ifndef CONFIG_SPL_BUILD
23 #undef CONFIG_BOOTCOMMAND
24 
25 /*
26  * We made a deal: Not allow U-Boot to bring up thunder-boot kernel.
27  *
28  * Because the thunder-boot feature may require special memory layout
29  * or other appointments, U-Boot can't handle all that. Let's go back
30  * to SPL to bring up kernel.
31  *
32  * Note: bootcmd is only called in normal boot sequence, that means
33  * we allow user to boot what they want in U-Boot shell mode.
34  */
35 #ifdef CONFIG_SPL_KERNEL_BOOT
36 #define CONFIG_BOOTCOMMAND "reset"
37 #else
38 #define CONFIG_BOOTCOMMAND RKIMG_BOOTCOMMAND
39 #endif
40 
41 #define CONFIG_SET_DFU_ALT_INFO
42 #define DFU_ALT_BOOT_EMMC \
43 	"gpt raw 0x0 0x20000;" \
44 	"loader raw 0x20000 0xE0000;"\
45 	"uboot part uboot;" \
46 	"boot part boot;" \
47 	"rootfs partubi rootfs;" \
48 	"userdata partubi userdata\0"
49 
50 #define DFU_ALT_BOOT_MTD \
51 	"gpt raw 0x0 0x20000;" \
52 	"loader raw 0x20000 0xE0000;"\
53 	"vnvm part vnvm;" \
54 	"uboot part uboot;" \
55 	"boot part boot;" \
56 	"rootfs partubi rootfs;" \
57 	"userdata partubi userdata\0"
58 #endif /* !CONFIG_SPL_BUILD */
59 #endif
60