1 /* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef __CONFIGS_GVA_RK3229_H 8 #define __CONFIGS_GVA_RK3229_H 9 10 #include <configs/rk322x_common.h> 11 12 13 /* Store env in emmc */ 14 #undef CONFIG_ENV_SIZE 15 #define CONFIG_ENV_SIZE (32 << 10) 16 #define CONFIG_SYS_MMC_ENV_DEV 0 17 #define CONFIG_SYS_MMC_ENV_PART 0 18 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT 19 #define CONFIG_SUPPORT_EMMC_RPMB 20 21 #ifndef CONFIG_SPL_BUILD 22 /* Enable gpt partition table */ 23 #undef PARTS_DEFAULT 24 #define PARTS_DEFAULT \ 25 "uuid_disk=${uuid_gpt_disk};" \ 26 "name=bootloader_a,start=4M,size=4M,uuid=${uuid_gpt_loader};" \ 27 "name=bootloader_b,size=4M,uuid=${uuid_gpt_reserved};" \ 28 "name=tos_a,size=4M,uuid=${uuid_gpt_reserved};" \ 29 "name=tos_b,size=4M,uuid=${uuid_gpt_reserved};" \ 30 "name=misc,size=4M,uuid=${uuid_gpt_misc};" \ 31 "name=metadata,size=16M,uuid=${uuid_gpt_metadata};" \ 32 "name=boot_a,size=32M,uuid=${uuid_gpt_boot_a};" \ 33 "name=boot_b,size=32M,uuid=${uuid_gpt_boot_b};" \ 34 "name=system_a,size=512M,uuid=${uuid_gpt_system_a};" \ 35 "name=system_b,size=512M,uuid=${uuid_gpt_system_b};" \ 36 "name=vendor_a,size=50M,uuid=${uuid_gpt_vendor_a};" \ 37 "name=vendor_b,size=50M,uuid=${uuid_gpt_vendor_b};" \ 38 "name=oem_a,size=32M,uuid=${uuid_gpt_oem_a};" \ 39 "name=oem_b,size=32M,uuid=${uuid_gpt_oem_b};" \ 40 "name=cache,size=100M,uuid=${uuid_gpt_cache};" \ 41 "name=persist,size=4M,uuid=${uuid_gpt_persist};" \ 42 "name=userdata,size=-,uuid=${uuid_gpt_userdata};\0" \ 43 44 #undef CONFIG_PREBOOT 45 #define CONFIG_PREBOOT \ 46 "mmc dev 0; " \ 47 "gpt guid mmc 0; " \ 48 "if test $? = 1; then " \ 49 "fastboot usb 0; " \ 50 "fi; " 51 52 #define CONFIG_SYS_BOOT_RAMDISK_HIGH 53 #undef CONFIG_BOOTCOMMAND 54 #define CONFIG_BOOTCOMMAND \ 55 "bootavb flow v; " \ 56 57 /* Enable atags */ 58 #define CONFIG_SYS_BOOTPARAMS_LEN (64*1024) 59 #define CONFIG_INITRD_TAG 60 #define CONFIG_SETUP_MEMORY_TAGS 61 #define CONFIG_CMDLINE_TAG 62 63 #endif 64 65 #endif 66