Alexey Brodkin | 4b2705b | 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 | ddbf697 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 6 | #ifndef _CONFIG_EMSDP_H_ |
| 7 | #define _CONFIG_EMSDP_H_ |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 8 | |
| 9 | #include <linux/sizes.h> |
| 10 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 11 | #define CFG_SYS_SDRAM_BASE 0x10000000 |
| 12 | #define CFG_SYS_SDRAM_SIZE SZ_16M |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 13 | |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 14 | /* |
| 15 | * Environment |
| 16 | */ |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 17 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 18 | #define CFG_EXTRA_ENV_SETTINGS \ |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 19 | "upgrade_image=u-boot.bin\0" \ |
Alexey Brodkin | ddbf697 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 20 | "upgrade=emsdp rom unlock && " \ |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 21 | "fatload mmc 0 ${loadaddr} ${upgrade_image} && " \ |
| 22 | "cp.b ${loadaddr} 0 ${filesize} && " \ |
| 23 | "dcache flush && " \ |
Alexey Brodkin | ddbf697 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 24 | "emsdp rom lock\0" |
Alexey Brodkin | 4b2705b | 2018-05-28 15:27:43 +0300 | [diff] [blame] | 25 | |
Alexey Brodkin | ddbf697 | 2018-10-18 09:54:58 +0300 | [diff] [blame] | 26 | #endif /* _CONFIG_EMSDP_H_ */ |