]>
Commit | Line | Data |
---|---|---|
03c22880 SG |
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 | ||
8bb5a66e TH |
11 | #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 \ | |
8bb5a66e TH |
21 | "loadaddr=0x20080000\0" \ |
22 | "kernel_addr_r=0x02000000\0" \ | |
23 | "ramdisk_addr_r=0x03000000\0" \ | |
24 | "scriptaddr=0x04000000\0" \ | |
25 | BOOTENV | |
26 | ||
27 | #else | |
28 | ||
29 | /** Extra environment settings */ | |
30 | #define CONFIG_EXTRA_ENV_SETTINGS \ | |
31 | "loadaddr=20080000\0" \ | |
32 | "autoload=0\0" | |
33 | ||
34 | #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/ | |
35 | ||
03c22880 | 36 | /** Maximum size of image supported for bootm (and bootable FIT images) */ |
03c22880 SG |
37 | |
38 | /** Memory base address */ | |
98463903 | 39 | #define CONFIG_SYS_SDRAM_BASE CONFIG_TEXT_BASE |
03c22880 SG |
40 | |
41 | /** Stack starting address */ | |
03c22880 SG |
42 | |
43 | /** Heap size for U-Boot */ | |
03c22880 | 44 | |
03c22880 SG |
45 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192 |
46 | ||
03c22880 | 47 | /** EMMC specific defines */ |
03c22880 SG |
48 | |
49 | #if defined(CONFIG_NAND_OCTEONTX) | |
03c22880 | 50 | #define CONFIG_SYS_MAX_NAND_DEVICE 8 |
03c22880 SG |
51 | #endif |
52 | ||
53 | #endif /* __OCTEONTX_COMMON_H__ */ |