blob: a560673512e6b7f8bd44d389e4b2606931760092 [file] [log] [blame]
Alexey Brodkin2c3f9262018-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 Brodkinadc9b092018-10-18 09:54:58 +03006#ifndef _CONFIG_EMSDP_H_
7#define _CONFIG_EMSDP_H_
Alexey Brodkin2c3f9262018-05-28 15:27:43 +03008
9#include <linux/sizes.h>
10
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030011#define CONFIG_SYS_SDRAM_BASE 0x10000000
Alexey Brodkinad74bb42018-11-27 09:20:44 +030012#define CONFIG_SYS_SDRAM_SIZE SZ_16M
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030013
14#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_1M)
15
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030016/*
17 * Environment
18 */
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030019
20#define CONFIG_EXTRA_ENV_SETTINGS \
21 "upgrade_image=u-boot.bin\0" \
Alexey Brodkinadc9b092018-10-18 09:54:58 +030022 "upgrade=emsdp rom unlock && " \
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030023 "fatload mmc 0 ${loadaddr} ${upgrade_image} && " \
24 "cp.b ${loadaddr} 0 ${filesize} && " \
25 "dcache flush && " \
Alexey Brodkinadc9b092018-10-18 09:54:58 +030026 "emsdp rom lock\0"
Alexey Brodkin2c3f9262018-05-28 15:27:43 +030027
Alexey Brodkinadc9b092018-10-18 09:54:58 +030028#endif /* _CONFIG_EMSDP_H_ */