xref: /openbmc/u-boot/include/configs/emsdp.h (revision 05512517)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 Synopsys, Inc. All rights reserved.
4  */
5 
6 #ifndef _CONFIG_EMSDP_H_
7 #define _CONFIG_EMSDP_H_
8 
9 #include <linux/sizes.h>
10 
11 #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
12 
13 #define CONFIG_SYS_SDRAM_BASE		0x10000000
14 #define CONFIG_SYS_SDRAM_SIZE		SZ_16M
15 
16 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE + SZ_1M)
17 
18 #define CONFIG_SYS_MALLOC_LEN		SZ_64K
19 #define CONFIG_SYS_LOAD_ADDR		CONFIG_SYS_SDRAM_BASE
20 
21 /*
22  * Environment
23  */
24 #define CONFIG_ENV_SIZE			SZ_4K
25 #define CONFIG_BOOTFILE			"app.bin"
26 #define CONFIG_LOADADDR			CONFIG_SYS_LOAD_ADDR
27 
28 #define CONFIG_EXTRA_ENV_SETTINGS \
29 	"upgrade_image=u-boot.bin\0" \
30 	"upgrade=emsdp rom unlock && " \
31 		"fatload mmc 0 ${loadaddr} ${upgrade_image} && " \
32 		"cp.b ${loadaddr} 0 ${filesize} && " \
33 		"dcache flush && " \
34 		"emsdp rom lock\0"
35 
36 #endif /* _CONFIG_EMSDP_H_ */
37 
38