2019-06-13 04:59:49 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Configuration header file for K3 J721E EVM
|
|
|
|
*
|
2020-08-17 23:15:12 +00:00
|
|
|
* Copyright (C) 2018-2020 Texas Instruments Incorporated - https://www.ti.com/
|
2019-06-13 04:59:49 +00:00
|
|
|
* Lokesh Vutla <lokeshvutla@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_J721E_EVM_H
|
|
|
|
#define __CONFIG_J721E_EVM_H
|
|
|
|
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
|
|
|
/* DDR Configuration */
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE1 0x880000000
|
2022-05-09 06:20:15 +00:00
|
|
|
/* FLASH Configuration */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_FLASH_BASE 0x000000000
|
2019-06-13 04:59:49 +00:00
|
|
|
|
|
|
|
/* SPL Loader Configuration */
|
2020-08-05 17:14:24 +00:00
|
|
|
#if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_UBOOT_BASE 0x50280000
|
2020-01-27 12:29:26 +00:00
|
|
|
/* Image load address in RAM for DFU boot*/
|
2019-06-13 04:59:49 +00:00
|
|
|
#else
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_UBOOT_BASE 0x50080000
|
2019-06-13 04:59:49 +00:00
|
|
|
#endif
|
|
|
|
|
2021-07-01 14:27:43 +00:00
|
|
|
#if CONFIG_IS_ENABLED(CMD_PXE)
|
|
|
|
# define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
|
|
|
|
#else
|
|
|
|
# define BOOT_TARGET_PXE(func)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if CONFIG_IS_ENABLED(CMD_DHCP)
|
|
|
|
# define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
|
|
|
|
#else
|
|
|
|
# define BOOT_TARGET_DHCP(func)
|
|
|
|
#endif
|
|
|
|
|
2023-01-25 23:09:55 +00:00
|
|
|
#ifdef CONFIG_CMD_USB
|
|
|
|
# define BOOT_TARGET_USB(func) func(USB, usb, 0)
|
|
|
|
#else
|
|
|
|
# define BOOT_TARGET_USB(func)
|
|
|
|
#endif
|
|
|
|
|
2021-07-01 14:27:43 +00:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
2023-01-25 23:09:55 +00:00
|
|
|
BOOT_TARGET_USB(func) \
|
2021-07-01 14:27:43 +00:00
|
|
|
func(MMC, mmc, 1) \
|
|
|
|
func(MMC, mmc, 0) \
|
|
|
|
BOOT_TARGET_PXE(func) \
|
|
|
|
BOOT_TARGET_DHCP(func)
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2019-06-13 04:59:49 +00:00
|
|
|
/* Incorporate settings into the U-Boot environment */
|
2022-12-04 15:03:50 +00:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2021-07-01 14:27:43 +00:00
|
|
|
BOOTENV
|
2019-06-13 04:59:49 +00:00
|
|
|
|
|
|
|
/* Now for the remaining common defines */
|
|
|
|
#include <configs/ti_armv7_common.h>
|
|
|
|
|
2020-01-16 14:12:24 +00:00
|
|
|
/* MMC ENV related defines */
|
|
|
|
|
2019-06-13 04:59:49 +00:00
|
|
|
#endif /* __CONFIG_J721E_EVM_H */
|