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 #define CONFIG_SUPPORT_RAW_INITRD
12 /** Maximum size of image supported for bootm (and bootable FIT images) */
13 #define CONFIG_SYS_BOOTM_LEN (256 << 20)
15 /** Memory base address */
16 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
18 /** Stack starting address */
19 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
21 /** Heap size for U-Boot */
22 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 64 * 1024 * 1024)
24 #define CONFIG_LAST_STAGE_INIT
26 /* Allow environment variable to be overwritten */
27 #define CONFIG_ENV_OVERWRITE
29 /* Autoboot options */
30 #define CONFIG_RESET_TO_RETRY
31 #define CONFIG_BOOT_RETRY_TIME -1
32 #define CONFIG_BOOT_RETRY_MIN 30
35 #define CONFIG_BOOTP_BOOTFILESIZE
37 /** Extra environment settings */
38 #define CONFIG_EXTRA_ENV_SETTINGS \
39 "loadaddr=20080000\0" \
43 /** Environment defines */
44 #if defined(CONFIG_ENV_IS_IN_MMC)
45 #define CONFIG_SYS_MMC_ENV_DEV 0
48 /* Monitor Command Prompt */
49 #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
50 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
52 #define CONFIG_SYS_MAXARGS 64 /** max command args */
54 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
56 #undef CONFIG_SYS_PROMPT
57 #define CONFIG_SYS_PROMPT env_get("prompt")
59 #if defined(CONFIG_MMC_OCTEONTX)
60 #define MMC_SUPPORTS_TUNING
61 /** EMMC specific defines */
62 #define CONFIG_SUPPORT_EMMC_BOOT
63 #define CONFIG_SUPPORT_EMMC_RPMB
66 #endif /* __OCTEONTX2_COMMON_H__ */