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 #ifdef CONFIG_DISTRO_DEFAULTS
12 #define BOOT_TARGET_DEVICES(func) \
18 #include <config_distro_bootcmd.h>
19 /* Extra environment variables */
20 #define CONFIG_EXTRA_ENV_SETTINGS \
22 "loadaddr=0x20080000\0" \
23 "kernel_addr_r=0x02000000\0" \
24 "ramdisk_addr_r=0x03000000\0" \
25 "scriptaddr=0x04000000\0" \
30 /** Extra environment settings */
31 #define CONFIG_EXTRA_ENV_SETTINGS \
32 "loadaddr=20080000\0" \
35 #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/
37 /** Maximum size of image supported for bootm (and bootable FIT images) */
38 #define CONFIG_SYS_BOOTM_LEN (256 << 20)
40 /** Memory base address */
41 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
43 /** Stack starting address */
44 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
46 /** Heap size for U-Boot */
48 /* Allow environment variable to be overwritten */
49 #define CONFIG_ENV_OVERWRITE
51 /* Autoboot options */
52 #define CONFIG_RESET_TO_RETRY
53 #define CONFIG_BOOT_RETRY_TIME -1
54 #define CONFIG_BOOT_RETRY_MIN 30
57 #define CONFIG_BOOTP_BOOTFILESIZE
59 /* AHCI support Definitions */
61 /** Enable 48-bit SATA addressing */
63 /** Enable 64-bit addressing */
64 # define CONFIG_SYS_64BIT_LBA
67 /***** SPI Defines *********/
68 #ifdef CONFIG_DM_SPI_FLASH
69 # define CONFIG_SF_DEFAULT_BUS 0
70 # define CONFIG_SF_DEFAULT_CS 0
73 /** Environment defines */
74 #if defined(CONFIG_ENV_IS_IN_MMC)
75 #define CONFIG_SYS_MMC_ENV_DEV 0
78 /* Monitor Command Prompt */
79 #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
80 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
82 #define CONFIG_SYS_MAXARGS 64 /** max command args */
84 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
86 #undef CONFIG_SYS_PROMPT
87 #define CONFIG_SYS_PROMPT env_get("prompt")
89 /** EMMC specific defines */
90 #if defined(CONFIG_MMC_OCTEONTX)
91 #define CONFIG_SUPPORT_EMMC_BOOT
92 #define CONFIG_SUPPORT_EMMC_RPMB
95 #if defined(CONFIG_NAND_OCTEONTX)
96 /*#define CONFIG_MTD_CONCAT */
97 #define CONFIG_SYS_MAX_NAND_DEVICE 8
100 #endif /* __OCTEONTX_COMMON_H__ */