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 #ifdef CONFIG_BOOTCOMMAND
15 #undef CONFIG_BOOTCOMMAND
16 #endif
17 
18 #define CONFIG_BOOTCOMMAND			"bootm 20090000 20400000 20080000"
19 
20 #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE + 0x300000)
21 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 0x5000000)
22 
23 #define CONFIG_SYS_UBOOT_BASE		CONFIG_SYS_TEXT_BASE
24 
25 /* Memory Info */
26 #define CONFIG_SYS_LOAD_ADDR		0x83000000
27 
28 /* Environment */
29 #define CONFIG_ENV_SIZE				0x10000
30 #ifdef CONFIG_CMD_NETTEST
31 #define CONFIG_ENV_OFFSET			0x7f0000
32 #else
33 #define CONFIG_ENV_OFFSET			0x70000
34 #endif
35 #define CONFIG_ENV_SECT_SIZE		(4 << 10)
36 
37 /* SPL */
38 #define CONFIG_SPL_TEXT_BASE		0x00000000
39 #define CONFIG_SPL_MAX_SIZE			0x00010000
40 #define CONFIG_SPL_STACK			0x1e723000
41 #define CONFIG_SPL_BSS_START_ADDR	0x90000000
42 #define CONFIG_SPL_BSS_MAX_SIZE		0x00100000
43 
44 #define CONFIG_SYS_SPL_MALLOC_START	0x88040000
45 #define CONFIG_SYS_SPL_MALLOC_SIZE	0x00100000
46 
47 #endif	/* __CONFIG_H */
48