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 #ifdef CONFIG_SPL_TINY
21 #ifdef CONFIG_SPL_BUILD
22 #define CONFIG_SYS_NS16550_REG_SIZE 2
23 #endif
24 #endif
25 
26 /* SPL */
27 #ifdef CONFIG_SECURE_BOOT
28 #define CONFIG_SYS_UBOOT_START		CONFIG_SECURE_BOOT_TEXT_BASE
29 #define CONFIG_SYS_MONITOR_LEN		0xe0000
30 #endif
31 
32 #define CONFIG_SPL_TEXT_BASE		0x00000000
33 #define CONFIG_SPL_MAX_SIZE			0x0000E800
34 #define CONFIG_SPL_STACK			0x10010000
35 
36 #define CONFIG_SPL_BSS_START_ADDR	0x90000000
37 #define CONFIG_SPL_BSS_MAX_SIZE		0x00100000
38 
39 #endif	/* __CONFIG_H */
40