1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C) ASPEED Technology Inc. 4 * 5 */ 6 7 #ifndef __CONFIG_H 8 #define __CONFIG_H 9 10 #include <configs/aspeed-common.h> 11 12 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE + 0x300000) 13 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x5000000) 14 15 #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE 16 17 /* Memory Info */ 18 #define CONFIG_SYS_LOAD_ADDR 0x83000000 19 20 /* SPL */ 21 #define CONFIG_SPL_TEXT_BASE 0x00000000 22 #define CONFIG_SPL_MAX_SIZE 0x00010000 23 #define CONFIG_SPL_STACK 0x10016000 24 #define CONFIG_SPL_BSS_START_ADDR 0x90000000 25 #define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 26 27 /* Extra ENV for Boot Command */ 28 #define STR_HELPER(n) #n 29 #define STR(n) STR_HELPER(n) 30 31 #undef CONFIG_EXTRA_ENV_SETTINGS 32 #define CONFIG_EXTRA_ENV_SETTINGS \ 33 "loadaddr=" STR(CONFIG_SYS_LOAD_ADDR) "\0" \ 34 "bootside=a\0" \ 35 "rootfs=rofs-a\0" \ 36 "setmmcargs=setenv bootargs ${bootargs} rootwait root=PARTLABEL=${rootfs}\0" \ 37 "boota=setenv bootpart 2; setenv rootfs rofs-a; run setmmcargs; ext4load mmc 0:${bootpart} ${loadaddr} fitImage && bootm; echo Error loading kernel FIT image\0" \ 38 "bootb=setenv bootpart 3; setenv rootfs rofs-b; run setmmcargs; ext4load mmc 0:${bootpart} ${loadaddr} fitImage && bootm; echo Error loading kernel FIT image\0" \ 39 "bootmmc=if test \"${bootside}\" = \"b\"; then run bootb; run boota; else run boota; run bootb; fi\0" \ 40 "verify=yes\0" \ 41 "" 42 43 #define CONFIG_SUPPORT_EMMC_BOOT 44 45 #ifdef CONFIG_SPL_TINY 46 #ifdef CONFIG_SPL_BUILD 47 #define CONFIG_SYS_NS16550_REG_SIZE 2 48 #endif 49 #endif 50 51 #endif /* __CONFIG_H */ 52