Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2018 Synopsys, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
Alexey Brodkin | adc9b09 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 6 | #ifndef _CONFIG_EMSDP_H_ |
| 7 | #define _CONFIG_EMSDP_H_ |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 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 |
Alexey Brodkin | ad74bb4 | 2018-11-27 09:20:44 +0300 | [diff] [blame] | 14 | #define CONFIG_SYS_SDRAM_SIZE SZ_16M |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 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 | |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 21 | /* |
| 22 | * Environment |
| 23 | */ |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 24 | #define CONFIG_BOOTFILE "app.bin" |
| 25 | #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR |
| 26 | |
| 27 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 28 | "upgrade_image=u-boot.bin\0" \ |
Alexey Brodkin | adc9b09 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 29 | "upgrade=emsdp rom unlock && " \ |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 30 | "fatload mmc 0 ${loadaddr} ${upgrade_image} && " \ |
| 31 | "cp.b ${loadaddr} 0 ${filesize} && " \ |
| 32 | "dcache flush && " \ |
Alexey Brodkin | adc9b09 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 33 | "emsdp rom lock\0" |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 34 | |
Alexey Brodkin | adc9b09 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 35 | #endif /* _CONFIG_EMSDP_H_ */ |
Alexey Brodkin | 2c3f926 | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 36 | |