arm: octeontx: move CONFIG_SUPPORT_RAW_INITRD to configs
[platform/kernel/u-boot.git] / include / configs / octeontx_common.h
1 /* SPDX-License-Identifier:    GPL-2.0
2  *
3  * Copyright (C) 2018 Marvell International Ltd.
4  *
5  * https://spdx.org/licenses
6  */
7
8 #ifndef __OCTEONTX_COMMON_H__
9 #define __OCTEONTX_COMMON_H__
10
11 /** Maximum size of image supported for bootm (and bootable FIT images) */
12 #define CONFIG_SYS_BOOTM_LEN            (256 << 20)
13
14 /** Memory base address */
15 #define CONFIG_SYS_SDRAM_BASE           CONFIG_SYS_TEXT_BASE
16
17 /** Stack starting address */
18 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0xffff0)
19
20 /** Heap size for U-Boot */
21 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 64 * 1024 * 1024)
22
23 #define CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SDRAM_BASE
24
25 /* Allow environment variable to be overwritten */
26 #define CONFIG_ENV_OVERWRITE
27
28 /** Reduce hashes printed out */
29 #define CONFIG_TFTP_TSIZE
30
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 /* AHCI support Definitions */
40 #ifdef CONFIG_DM_SCSI
41 /** Enable 48-bit SATA addressing */
42 # define CONFIG_LBA48
43 /** Enable 64-bit addressing */
44 # define CONFIG_SYS_64BIT_LBA
45 #endif
46
47 /***** SPI Defines *********/
48 #ifdef CONFIG_DM_SPI_FLASH
49 # define CONFIG_SF_DEFAULT_BUS  0
50 # define CONFIG_SF_DEFAULT_CS   0
51 #endif
52
53 /** Extra environment settings */
54 #define CONFIG_EXTRA_ENV_SETTINGS       \
55                                         "loadaddr=20080000\0"   \
56                                         "autoload=0\0"
57
58 /** Environment defines */
59 #if defined(CONFIG_ENV_IS_IN_MMC)
60 #define CONFIG_SYS_MMC_ENV_DEV          0
61 #endif
62
63 /* Monitor Command Prompt */
64 #define CONFIG_SYS_CBSIZE               1024    /** Console I/O Buffer Size */
65 #define CONFIG_SYS_BARGSIZE             CONFIG_SYS_CBSIZE
66
67 #define CONFIG_SYS_MAXARGS              64      /** max command args */
68
69 #define CONFIG_SYS_MMC_MAX_BLK_COUNT    8192
70
71 #undef CONFIG_SYS_PROMPT
72 #define CONFIG_SYS_PROMPT               env_get("prompt")
73
74 /** EMMC specific defines */
75 #if defined(CONFIG_MMC_OCTEONTX)
76 #define CONFIG_SUPPORT_EMMC_BOOT
77 #define CONFIG_SUPPORT_EMMC_RPMB
78 #endif
79
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
84 #endif
85
86 #endif /* __OCTEONTX_COMMON_H__ */