1 /* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef __RK322X_CONFIG_H 8 #define __RK322X_CONFIG_H 9 10 #include <configs/rk322x_common.h> 11 12 13 /* Store env in emmc */ 14 #define CONFIG_SYS_MMC_ENV_DEV 0 15 #define CONFIG_SYS_MMC_ENV_PART 0 16 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT 17 #define CONFIG_SUPPORT_EMMC_RPMB 18 19 #ifndef CONFIG_SPL_BUILD 20 /* Enable gpt partition table */ 21 #undef CONFIG_PREBOOT 22 #define CONFIG_PREBOOT \ 23 "mmc dev 0; " \ 24 "gpt guid mmc 0; " \ 25 "if test $? = 1; then " \ 26 "fastboot usb 0; " \ 27 "fi; " 28 29 #define CONFIG_SYS_BOOT_RAMDISK_HIGH 30 31 /* Enable atags */ 32 #define CONFIG_SYS_BOOTPARAMS_LEN (64*1024) 33 #define CONFIG_INITRD_TAG 34 #define CONFIG_SETUP_MEMORY_TAGS 35 #define CONFIG_CMDLINE_TAG 36 37 #endif 38 39 #endif 40