blob: 22d38588780d57be8f659741445650a2ca66ddfb [file] [log] [blame]
Suneel Garapatiaddfabc2019-10-19 18:37:55 -07001/* 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
Tim Harvey2771d082021-03-25 17:07:33 -070011#ifdef CONFIG_DISTRO_DEFAULTS
12#define BOOT_TARGET_DEVICES(func) \
13 func(MMC, mmc, 0) \
14 func(MMC, mmc, 1) \
15 func(USB, usb, 0) \
16 func(SCSI, scsi, 0)
17
18#include <config_distro_bootcmd.h>
19/* Extra environment variables */
20#define CONFIG_EXTRA_ENV_SETTINGS \
21 "autoload=0\0" \
22 "loadaddr=0x20080000\0" \
23 "kernel_addr_r=0x02000000\0" \
24 "ramdisk_addr_r=0x03000000\0" \
25 "scriptaddr=0x04000000\0" \
26 BOOTENV
27
28#else
29
30/** Extra environment settings */
31#define CONFIG_EXTRA_ENV_SETTINGS \
32 "loadaddr=20080000\0" \
33 "autoload=0\0"
34
35#endif /* ifdef CONFIG_DISTRO_DEFAULTS*/
36
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070037/** Maximum size of image supported for bootm (and bootable FIT images) */
38#define CONFIG_SYS_BOOTM_LEN (256 << 20)
39
40/** Memory base address */
41#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
42
43/** Stack starting address */
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070044
45/** Heap size for U-Boot */
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070046
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070047/* AHCI support Definitions */
48#ifdef CONFIG_DM_SCSI
49/** Enable 48-bit SATA addressing */
50# define CONFIG_LBA48
51/** Enable 64-bit addressing */
52# define CONFIG_SYS_64BIT_LBA
53#endif
54
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070055#define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
56
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070057/** EMMC specific defines */
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070058
59#if defined(CONFIG_NAND_OCTEONTX)
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070060#define CONFIG_SYS_MAX_NAND_DEVICE 8
Suneel Garapatiaddfabc2019-10-19 18:37:55 -070061#endif
62
63#endif /* __OCTEONTX_COMMON_H__ */