xref: /openbmc/u-boot/include/configs/evb_rk3229.h (revision 8a23fc9c)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
4  */
5 
6 #ifndef __CONFIG_H
7 #define __CONFIG_H
8 
9 #include <configs/rk322x_common.h>
10 
11 
12 /* Store env in emmc */
13 #define CONFIG_SYS_MMC_ENV_DEV          0
14 #define CONFIG_SYS_MMC_ENV_PART         0
15 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
16 
17 #ifndef CONFIG_SPL_BUILD
18 /* Enable gpt partition table */
19 #undef PARTS_DEFAULT
20 #define PARTS_DEFAULT \
21 	"uuid_disk=${uuid_gpt_disk};" \
22 	"name=loader_a,start=4M,size=4M,uuid=${uuid_gpt_loader};" \
23 	"name=loader_b,size=4M,uuid=${uuid_gpt_reserved};" \
24 	"name=trust_a,size=4M,uuid=${uuid_gpt_reserved};" \
25 	"name=trust_b,size=4M,uuid=${uuid_gpt_reserved};" \
26 	"name=misc,size=4M,uuid=${uuid_gpt_misc};" \
27 	"name=metadata,size=16M,uuid=${uuid_gpt_metadata};" \
28 	"name=boot_a,size=32M,uuid=${uuid_gpt_boot_a};" \
29 	"name=boot_b,size=32M,uuid=${uuid_gpt_boot_b};" \
30 	"name=system_a,size=818M,uuid=${uuid_gpt_system_a};" \
31 	"name=system_b,size=818M,uuid=${uuid_gpt_system_b};" \
32 	"name=vendor_a,size=50M,uuid=${uuid_gpt_vendor_a};" \
33 	"name=vendor_b,size=50M,uuid=${uuid_gpt_vendor_b};" \
34 	"name=cache,size=100M,uuid=${uuid_gpt_cache};" \
35 	"name=persist,size=4M,uuid=${uuid_gpt_persist};" \
36 	"name=userdata,size=-,uuid=${uuid_gpt_userdata};\0" \
37 
38 #define CONFIG_PREBOOT
39 
40 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
41 
42 #undef CONFIG_BOOTCOMMAND
43 #define CONFIG_BOOTCOMMAND \
44 	"mmc read 0x61000000 0x8000 0x5000;" \
45 	"bootm 0x61000000" \
46 
47 /* Enable atags */
48 #define CONFIG_SYS_BOOTPARAMS_LEN	(64*1024)
49 #define CONFIG_INITRD_TAG
50 #define CONFIG_SETUP_MEMORY_TAGS
51 #define CONFIG_CMDLINE_TAG
52 
53 #endif
54 
55 #endif
56