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