include: configs: j721e_evm: Change to using .env
[platform/kernel/u-boot.git] / include / configs / j721e_evm.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration header file for K3 J721E EVM
4  *
5  * Copyright (C) 2018-2020 Texas Instruments Incorporated - https://www.ti.com/
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>
13
14 /* DDR Configuration */
15 #define CFG_SYS_SDRAM_BASE1             0x880000000
16 /* FLASH Configuration */
17 #define CFG_SYS_FLASH_BASE              0x000000000
18
19 /* SPL Loader Configuration */
20 #if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
21 #define CFG_SYS_UBOOT_BASE              0x50280000
22 /* Image load address in RAM for DFU boot*/
23 #else
24 #define CFG_SYS_UBOOT_BASE              0x50080000
25 #endif
26
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
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
45 #define BOOT_TARGET_DEVICES(func) \
46         BOOT_TARGET_USB(func) \
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
54 /* Incorporate settings into the U-Boot environment */
55 #define CFG_EXTRA_ENV_SETTINGS                                  \
56         BOOTENV
57
58 /* Now for the remaining common defines */
59 #include <configs/ti_armv7_common.h>
60
61 /* MMC ENV related defines */
62
63 #endif /* __CONFIG_J721E_EVM_H */