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 #define ROCKCHIP_DEVICE_SETTINGS \ 13 "stdout=serial,vidconsole\0" \ 14 "stderr=serial,vidconsole\0" 15 16 /* Store env in emmc */ 17 #define CONFIG_SYS_MMC_ENV_DEV 0 18 #define CONFIG_SYS_MMC_ENV_PART 0 19 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT 20 #define CONFIG_SUPPORT_EMMC_RPMB 21 22 #ifndef CONFIG_SPL_BUILD 23 /* Enable gpt partition table */ 24 #undef CONFIG_PREBOOT 25 #define CONFIG_PREBOOT \ 26 "mmc dev 0; " \ 27 "gpt guid mmc 0; " \ 28 "if test $? = 1; then " \ 29 "fastboot usb 0; " \ 30 "fi; " 31 32 #define CONFIG_SYS_BOOT_RAMDISK_HIGH 33 34 /* Enable atags */ 35 #define CONFIG_SYS_BOOTPARAMS_LEN (64*1024) 36 #define CONFIG_INITRD_TAG 37 #define CONFIG_SETUP_MEMORY_TAGS 38 #define CONFIG_CMDLINE_TAG 39 40 #endif 41 42 #endif 43