blob: de92cd48fb7d01fe164c2ac212f5046836217826 [file] [log] [blame]
Lokesh Vutla1a9dd212019-06-13 10:29:49 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Configuration header file for K3 J721E EVM
4 *
Suman Anna5c8e9332020-08-17 18:15:12 -05005 * Copyright (C) 2018-2020 Texas Instruments Incorporated - https://www.ti.com/
Lokesh Vutla1a9dd212019-06-13 10:29:49 +05306 * 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 Vutla1a9dd212019-06-13 10:29:49 +053013
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053014/* DDR Configuration */
Tom Rinibb4dd962022-11-16 13:10:37 -050015#define CFG_SYS_SDRAM_BASE1 0x880000000
Vaishnav Achath07127892022-05-09 11:50:15 +053016/* FLASH Configuration */
Tom Rini6a5dccc2022-11-16 13:10:41 -050017#define CFG_SYS_FLASH_BASE 0x000000000
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053018
19/* SPL Loader Configuration */
Lokesh Vutla046ad432020-08-05 22:44:24 +053020#if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
Tom Rini6a5dccc2022-11-16 13:10:41 -050021#define CFG_SYS_UBOOT_BASE 0x50280000
Vignesh Raghavendra853a6892020-01-27 17:59:26 +053022/* Image load address in RAM for DFU boot*/
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053023#else
Tom Rini6a5dccc2022-11-16 13:10:41 -050024#define CFG_SYS_UBOOT_BASE 0x50080000
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053025#endif
26
Tom Rini4613f1f2021-07-01 10:27:43 -040027#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 Rinice488ca2023-01-25 18:09:55 -050039#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 Rini4613f1f2021-07-01 10:27:43 -040045#define BOOT_TARGET_DEVICES(func) \
Tom Rinice488ca2023-01-25 18:09:55 -050046 BOOT_TARGET_USB(func) \
Tom Rini4613f1f2021-07-01 10:27:43 -040047 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 Vutla1a9dd212019-06-13 10:29:49 +053054/* Incorporate settings into the U-Boot environment */
Tom Rinic9edebe2022-12-04 10:03:50 -050055#define CFG_EXTRA_ENV_SETTINGS \
Tom Rini4613f1f2021-07-01 10:27:43 -040056 BOOTENV
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053057
58/* Now for the remaining common defines */
59#include <configs/ti_armv7_common.h>
60
Faiz Abbasd40f61d2020-01-16 19:42:24 +053061/* MMC ENV related defines */
Faiz Abbasd40f61d2020-01-16 19:42:24 +053062
Lokesh Vutla1a9dd212019-06-13 10:29:49 +053063#endif /* __CONFIG_J721E_EVM_H */