1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2012-2020  ASPEED Technology Inc.
4  * Ryan Chen <ryan_chen@aspeedtech.com>
5  *
6  * Copyright 2016 Google Inc
7  */
8 
9 #ifndef __CONFIG_H
10 #define __CONFIG_H
11 
12 #include <configs/aspeed-common.h>
13 
14 #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE + 0x300000)
15 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 0x5000000)
16 
17 #define CONFIG_SYS_UBOOT_BASE		CONFIG_SYS_TEXT_BASE
18 
19 /* Memory Info */
20 #define CONFIG_SYS_LOAD_ADDR		0x83000000
21 
22 /* Environment */
23 #define CONFIG_ENV_SIZE			0x10000
24 
25 #ifdef CONFIG_CMD_NETTEST
26 #define CONFIG_ENV_OFFSET		0x7f0000
27 #else
28 #define CONFIG_ENV_OFFSET		0x80000
29 #endif
30 
31 #define CONFIG_ENV_SECT_SIZE		(4 << 10)
32 
33 #ifdef CONFIG_SPL_TINY
34 #ifdef CONFIG_SPL_BUILD
35 #define CONFIG_SYS_NS16550_REG_SIZE 2
36 #endif
37 #endif
38 
39 /* SPL */
40 #define CONFIG_SPL_TEXT_BASE		0x00000000
41 #define CONFIG_SPL_MAX_SIZE			0x00010000
42 #define CONFIG_SPL_STACK			0x10010000
43 
44 #define CONFIG_SPL_BSS_START_ADDR	0x90000000
45 #define CONFIG_SPL_BSS_MAX_SIZE		0x00100000
46 
47 #endif	/* __CONFIG_H */
48