Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 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 | |
Tim Harvey | 8bb5a66 | 2021-03-25 17:07:33 -0700 | [diff] [blame] | 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 */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 20 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tim Harvey | 8bb5a66 | 2021-03-25 17:07:33 -0700 | [diff] [blame] | 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 */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 30 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tim Harvey | 8bb5a66 | 2021-03-25 17:07:33 -0700 | [diff] [blame] | 31 | "loadaddr=20080000\0" \ |
| 32 | "autoload=0\0" |
| 33 | |
| 34 | #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/ |
| 35 | |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 36 | /** Maximum size of image supported for bootm (and bootable FIT images) */ |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 37 | |
| 38 | /** Memory base address */ |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 39 | #define CFG_SYS_SDRAM_BASE CONFIG_TEXT_BASE |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 40 | |
| 41 | /** Stack starting address */ |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 42 | |
| 43 | /** Heap size for U-Boot */ |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 44 | |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 45 | /** EMMC specific defines */ |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 46 | |
Suneel Garapati | 03c2288 | 2019-10-19 18:37:55 -0700 | [diff] [blame] | 47 | #endif /* __OCTEONTX_COMMON_H__ */ |