Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Configuration header file for K3 J721E EVM |
| 4 | * |
Suman Anna | 5c8e933 | 2020-08-17 18:15:12 -0500 | [diff] [blame] | 5 | * Copyright (C) 2018-2020 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 6 | * Lokesh Vutla <lokeshvutla@ti.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_J721E_EVM_H |
| 10 | #define __CONFIG_J721E_EVM_H |
| 11 | |
| 12 | #include <linux/sizes.h> |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 13 | |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 14 | /* DDR Configuration */ |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 15 | #define CFG_SYS_SDRAM_BASE1 0x880000000 |
Vaishnav Achath | 0712789 | 2022-05-09 11:50:15 +0530 | [diff] [blame] | 16 | /* FLASH Configuration */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 17 | #define CFG_SYS_FLASH_BASE 0x000000000 |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 18 | |
| 19 | /* SPL Loader Configuration */ |
Lokesh Vutla | 046ad43 | 2020-08-05 22:44:24 +0530 | [diff] [blame] | 20 | #if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 21 | #define CFG_SYS_UBOOT_BASE 0x50280000 |
Vignesh Raghavendra | 853a689 | 2020-01-27 17:59:26 +0530 | [diff] [blame] | 22 | /* Image load address in RAM for DFU boot*/ |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 23 | #else |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 24 | #define CFG_SYS_UBOOT_BASE 0x50080000 |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 25 | #endif |
| 26 | |
Tom Rini | 4613f1f | 2021-07-01 10:27:43 -0400 | [diff] [blame] | 27 | #if CONFIG_IS_ENABLED(CMD_PXE) |
| 28 | # define BOOT_TARGET_PXE(func) func(PXE, pxe, na) |
| 29 | #else |
| 30 | # define BOOT_TARGET_PXE(func) |
| 31 | #endif |
| 32 | |
| 33 | #if CONFIG_IS_ENABLED(CMD_DHCP) |
| 34 | # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na) |
| 35 | #else |
| 36 | # define BOOT_TARGET_DHCP(func) |
| 37 | #endif |
| 38 | |
Tom Rini | ce488ca | 2023-01-25 18:09:55 -0500 | [diff] [blame] | 39 | #ifdef CONFIG_CMD_USB |
| 40 | # define BOOT_TARGET_USB(func) func(USB, usb, 0) |
| 41 | #else |
| 42 | # define BOOT_TARGET_USB(func) |
| 43 | #endif |
| 44 | |
Tom Rini | 4613f1f | 2021-07-01 10:27:43 -0400 | [diff] [blame] | 45 | #define BOOT_TARGET_DEVICES(func) \ |
Tom Rini | ce488ca | 2023-01-25 18:09:55 -0500 | [diff] [blame] | 46 | BOOT_TARGET_USB(func) \ |
Tom Rini | 4613f1f | 2021-07-01 10:27:43 -0400 | [diff] [blame] | 47 | func(MMC, mmc, 1) \ |
| 48 | func(MMC, mmc, 0) \ |
| 49 | BOOT_TARGET_PXE(func) \ |
| 50 | BOOT_TARGET_DHCP(func) |
| 51 | |
| 52 | #include <config_distro_bootcmd.h> |
| 53 | |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 54 | /* Incorporate settings into the U-Boot environment */ |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 55 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | 4613f1f | 2021-07-01 10:27:43 -0400 | [diff] [blame] | 56 | BOOTENV |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 57 | |
| 58 | /* Now for the remaining common defines */ |
| 59 | #include <configs/ti_armv7_common.h> |
| 60 | |
Faiz Abbas | d40f61d | 2020-01-16 19:42:24 +0530 | [diff] [blame] | 61 | /* MMC ENV related defines */ |
Faiz Abbas | d40f61d | 2020-01-16 19:42:24 +0530 | [diff] [blame] | 62 | |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 63 | #endif /* __CONFIG_J721E_EVM_H */ |