1 /* SPDX-License-Identifier: GPL-2.0
2 * Copyright (C) 2018 Marvell International Ltd.
4 * https://spdx.org/licenses
7 #ifndef __OCTEONTX2_COMMON_H__
8 #define __OCTEONTX2_COMMON_H__
10 /** Maximum size of image supported for bootm (and bootable FIT images) */
11 #define CONFIG_SYS_BOOTM_LEN (256 << 20)
13 /** Memory base address */
14 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
16 /** Stack starting address */
17 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
19 /* Autoboot options */
20 #define CONFIG_RESET_TO_RETRY
21 #define CONFIG_BOOT_RETRY_TIME -1
22 #define CONFIG_BOOT_RETRY_MIN 30
25 #define CONFIG_BOOTP_BOOTFILESIZE
27 /** Extra environment settings */
28 #define CONFIG_EXTRA_ENV_SETTINGS \
29 "loadaddr=20080000\0" \
33 /* Monitor Command Prompt */
34 #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
35 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
37 #define CONFIG_SYS_MAXARGS 64 /** max command args */
39 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
41 #if defined(CONFIG_MMC_OCTEONTX)
42 #define MMC_SUPPORTS_TUNING
43 /** EMMC specific defines */
46 #endif /* __OCTEONTX2_COMMON_H__ */