blob: bc21b795cf6bc99e5a12bf072995b6045404b277 [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
10#define CONFIG_SUPPORT_RAW_INITRD
11
12/** Maximum size of image supported for bootm (and bootable FIT images) */
13#define CONFIG_SYS_BOOTM_LEN (256 << 20)
14
15/** Memory base address */
16#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
17
18/** Stack starting address */
19#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
20
Suneel Garapatid9e72462019-10-19 18:47:37 -070021/* Autoboot options */
22#define CONFIG_RESET_TO_RETRY
23#define CONFIG_BOOT_RETRY_TIME -1
24#define CONFIG_BOOT_RETRY_MIN 30
25
26/* BOOTP options */
27#define CONFIG_BOOTP_BOOTFILESIZE
28
29/** Extra environment settings */
30#define CONFIG_EXTRA_ENV_SETTINGS \
31 "loadaddr=20080000\0" \
32 "ethrotate=yes\0" \
33 "autoload=0\0"
34
Suneel Garapatid9e72462019-10-19 18:47:37 -070035/* Monitor Command Prompt */
36#define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
37#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
38
39#define CONFIG_SYS_MAXARGS 64 /** max command args */
40
41#define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
42
Suneel Garapatid9e72462019-10-19 18:47:37 -070043#if defined(CONFIG_MMC_OCTEONTX)
44#define MMC_SUPPORTS_TUNING
45/** EMMC specific defines */
Suneel Garapatid9e72462019-10-19 18:47:37 -070046#define CONFIG_SUPPORT_EMMC_RPMB
Suneel Garapatid9e72462019-10-19 18:47:37 -070047#endif
48
49#endif /* __OCTEONTX2_COMMON_H__ */