blob: f1b2ddae34ac6f8ef8a78e5419755a6ef4ed9f03 [file] [log] [blame]
Alexey Brodkin4b2705b2018-05-28 15:27:43 +03001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2018 Synopsys, Inc. All rights reserved.
4 */
5
Alexey Brodkinddbf6972018-10-18 09:54:58 +03006#ifndef _CONFIG_EMSDP_H_
7#define _CONFIG_EMSDP_H_
Alexey Brodkin4b2705b2018-05-28 15:27:43 +03008
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 Brodkin0e5c9432018-11-27 09:20:44 +030014#define CONFIG_SYS_SDRAM_SIZE SZ_16M
Alexey Brodkin4b2705b2018-05-28 15:27:43 +030015
16#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_1M)
17
Alexey Brodkin4b2705b2018-05-28 15:27:43 +030018/*
19 * Environment
20 */
Alexey Brodkin4b2705b2018-05-28 15:27:43 +030021
22#define CONFIG_EXTRA_ENV_SETTINGS \
23 "upgrade_image=u-boot.bin\0" \
Alexey Brodkinddbf6972018-10-18 09:54:58 +030024 "upgrade=emsdp rom unlock && " \
Alexey Brodkin4b2705b2018-05-28 15:27:43 +030025 "fatload mmc 0 ${loadaddr} ${upgrade_image} && " \
26 "cp.b ${loadaddr} 0 ${filesize} && " \
27 "dcache flush && " \
Alexey Brodkinddbf6972018-10-18 09:54:58 +030028 "emsdp rom lock\0"
Alexey Brodkin4b2705b2018-05-28 15:27:43 +030029
Alexey Brodkinddbf6972018-10-18 09:54:58 +030030#endif /* _CONFIG_EMSDP_H_ */