Merge branch '2023-02-07-assorted-updates'
[platform/kernel/u-boot.git] / include / configs / am62x_evm.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuration header file for K3 AM625 SoC family
4  *
5  * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
6  *      Suman Anna <s-anna@ti.com>
7  */
8
9 #ifndef __CONFIG_AM625_EVM_H
10 #define __CONFIG_AM625_EVM_H
11
12 #include <config_distro_bootcmd.h>
13 #include <environment/ti/mmc.h>
14
15 /* DDR Configuration */
16 #define CFG_SYS_SDRAM_BASE1             0x880000000
17
18 #ifdef CONFIG_CMD_MMC
19 #define DISTRO_BOOT_DEV_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
20 #else
21 #define DISTRO_BOOT_DEV_MMC(func)
22 #endif
23
24 #ifdef CONFIG_CMD_PXE
25 #define DISTRO_BOOT_DEV_PXE(func) func(PXE, pxe, na)
26 #else
27 #define DISTRO_BOOT_DEV_PXE(func)
28 #endif
29
30 #ifdef CONFIG_CMD_DHCP
31 #define DISTRO_BOOT_DEV_DHCP(func) func(DHCP, dhcp, na)
32 #else
33 #define DISTRO_BOOT_DEV_DHCP(func)
34 #endif
35
36 #define BOOT_TARGET_DEVICES(func) \
37         DISTRO_BOOT_DEV_MMC(func) \
38         DISTRO_BOOT_DEV_PXE(func) \
39         DISTRO_BOOT_DEV_DHCP(func)
40
41 /* Incorporate settings into the U-Boot environment */
42 #define CFG_EXTRA_ENV_SETTINGS                                  \
43         BOOTENV
44
45 /* Now for the remaining common defines */
46 #include <configs/ti_armv7_common.h>
47
48 #endif /* __CONFIG_AM625_EVM_H */