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