1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Marvell International Ltd.
5 * https://spdx.org/licenses
8 #ifndef __OCTEONTX_COMMON_H__
9 #define __OCTEONTX_COMMON_H__
11 /** Maximum size of image supported for bootm (and bootable FIT images) */
12 #define CONFIG_SYS_BOOTM_LEN (256 << 20)
14 /** Memory base address */
15 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
17 /** Stack starting address */
18 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
20 /** Heap size for U-Boot */
21 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 64 * 1024 * 1024)
23 #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
25 /* Allow environment variable to be overwritten */
26 #define CONFIG_ENV_OVERWRITE
28 /** Reduce hashes printed out */
29 #define CONFIG_TFTP_TSIZE
31 /* Autoboot options */
32 #define CONFIG_RESET_TO_RETRY
33 #define CONFIG_BOOT_RETRY_TIME -1
34 #define CONFIG_BOOT_RETRY_MIN 30
37 #define CONFIG_BOOTP_BOOTFILESIZE
39 /* AHCI support Definitions */
41 /** Enable 48-bit SATA addressing */
43 /** Enable 64-bit addressing */
44 # define CONFIG_SYS_64BIT_LBA
47 /***** SPI Defines *********/
48 #ifdef CONFIG_DM_SPI_FLASH
49 # define CONFIG_SF_DEFAULT_BUS 0
50 # define CONFIG_SF_DEFAULT_CS 0
53 /** Extra environment settings */
54 #define CONFIG_EXTRA_ENV_SETTINGS \
55 "loadaddr=20080000\0" \
58 /** Environment defines */
59 #if defined(CONFIG_ENV_IS_IN_MMC)
60 #define CONFIG_SYS_MMC_ENV_DEV 0
63 /* Monitor Command Prompt */
64 #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
65 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
67 #define CONFIG_SYS_MAXARGS 64 /** max command args */
69 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
71 #undef CONFIG_SYS_PROMPT
72 #define CONFIG_SYS_PROMPT env_get("prompt")
74 /** EMMC specific defines */
75 #if defined(CONFIG_MMC_OCTEONTX)
76 #define CONFIG_SUPPORT_EMMC_BOOT
77 #define CONFIG_SUPPORT_EMMC_RPMB
80 #if defined(CONFIG_NAND_OCTEONTX)
81 /*#define CONFIG_MTD_CONCAT */
82 #define CONFIG_SYS_MAX_NAND_DEVICE 8
83 #define CONFIG_SYS_NAND_ONFI_DETECTION
86 #endif /* __OCTEONTX_COMMON_H__ */