blob: 4df3be1b1ea9573d2452af4202156e11627a988c [file] [log] [blame]
Suneel Garapatid9e72462019-10-19 18:47:37 -07001/* SPDX-License-Identifier: GPL-2.0
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * https://spdx.org/licenses
5 */
6
7#ifndef __OCTEONTX2_COMMON_H__
8#define __OCTEONTX2_COMMON_H__
9
Suneel Garapatid9e72462019-10-19 18:47:37 -070010/** Maximum size of image supported for bootm (and bootable FIT images) */
11#define CONFIG_SYS_BOOTM_LEN (256 << 20)
12
13/** Memory base address */
14#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
15
16/** Stack starting address */
17#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
18
Suneel Garapatid9e72462019-10-19 18:47:37 -070019/** Extra environment settings */
20#define CONFIG_EXTRA_ENV_SETTINGS \
21 "loadaddr=20080000\0" \
22 "ethrotate=yes\0" \
23 "autoload=0\0"
24
Suneel Garapatid9e72462019-10-19 18:47:37 -070025#define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
26
Suneel Garapatid9e72462019-10-19 18:47:37 -070027#if defined(CONFIG_MMC_OCTEONTX)
28#define MMC_SUPPORTS_TUNING
29/** EMMC specific defines */
Suneel Garapatid9e72462019-10-19 18:47:37 -070030#endif
31
32#endif /* __OCTEONTX2_COMMON_H__ */