Introduce the bare minimum SD and UART support for AM62D2-EVM.

Signed-off-by: Paresh Bhagat <p-bha...@ti.com>
---
 board/ti/am62dx/Kconfig     | 26 ++++++++++++++++++++++++++
 board/ti/am62dx/MAINTAINERS |  8 ++++++++
 board/ti/am62dx/Makefile    |  7 +++++++
 board/ti/am62dx/am62dx.env  | 21 +++++++++++++++++++++
 board/ti/am62dx/evm.c       | 37 +++++++++++++++++++++++++++++++++++++
 5 files changed, 99 insertions(+)
 create mode 100644 board/ti/am62dx/Kconfig
 create mode 100644 board/ti/am62dx/MAINTAINERS
 create mode 100644 board/ti/am62dx/Makefile
 create mode 100644 board/ti/am62dx/am62dx.env
 create mode 100644 board/ti/am62dx/evm.c

diff --git a/board/ti/am62dx/Kconfig b/board/ti/am62dx/Kconfig
new file mode 100644
index 00000000000..0bdd6a61846
--- /dev/null
+++ b/board/ti/am62dx/Kconfig
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+if TARGET_AM62D2_R5_EVM || TARGET_AM62D2_A53_EVM
+
+config SYS_BOARD
+       default "am62dx"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "am62ax_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
+
+if TARGET_AM62D2_R5_EVM
+
+config SPL_LDSCRIPT
+       default "arch/arm/mach-omap2/u-boot-spl.lds"
+
+endif
diff --git a/board/ti/am62dx/MAINTAINERS b/board/ti/am62dx/MAINTAINERS
new file mode 100644
index 00000000000..e7af7be35bc
--- /dev/null
+++ b/board/ti/am62dx/MAINTAINERS
@@ -0,0 +1,8 @@
+AM62Dx BOARD
+M:     Vignesh Raghavendra <vigne...@ti.com>
+M:     Bryan Brattlof <b...@ti.com>
+S:     Maintained
+F:     board/ti/am62dx/
+F:     include/configs/am62a7_evm.h
+F:     configs/am62dx_evm_r5_defconfig
+F:     configs/am62dx_evm_a53_defconfig
diff --git a/board/ti/am62dx/Makefile b/board/ti/am62dx/Makefile
new file mode 100644
index 00000000000..5f247ec1cc2
--- /dev/null
+++ b/board/ti/am62dx/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y  += evm.o
diff --git a/board/ti/am62dx/am62dx.env b/board/ti/am62dx/am62dx.env
new file mode 100644
index 00000000000..6fa80a964c1
--- /dev/null
+++ b/board/ti/am62dx/am62dx.env
@@ -0,0 +1,21 @@
+#include <env/ti/ti_common.env>
+#include <env/ti/mmc.env>
+#include <env/ti/k3_dfu.env>
+#if CONFIG_CMD_REMOTEPROC
+#include <env/ti/k3_rproc.env>
+#endif
+
+name_kern=Image
+console=ttyS2,115200n8
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+       ${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+boot_targets=mmc1 mmc0 usb pxe dhcp
+boot=mmc
+mmcdev=1
+bootpart=1:2
+bootdir=/boot
+rd_spec=-
+
+rproc_fw_binaries= 0 /lib/firmware/am62d-mcu-r5f0_0-fw 1 
/lib/firmware/am62d-c71_0-fw
diff --git a/board/ti/am62dx/evm.c b/board/ti/am62dx/evm.c
new file mode 100644
index 00000000000..1d8216128c9
--- /dev/null
+++ b/board/ti/am62dx/evm.c
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62Dx platforms
+ *
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#include <asm/arch/hardware.h>
+#include <asm/io.h>
+#include <dm/uclass.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <spl.h>
+#include <asm/arch/k3-ddr.h>
+
+#include "../common/fdt_ops.h"
+
+#if defined(CONFIG_XPL_BUILD)
+void spl_perform_fixups(struct spl_image_info *spl_image)
+{
+       if (IS_ENABLED(CONFIG_K3_DDRSS)) {
+               if (IS_ENABLED(CONFIG_K3_INLINE_ECC))
+                       fixup_ddr_driver_for_ecc(spl_image);
+       } else {
+               fixup_memory_node(spl_image);
+       }
+}
+#endif
+
+#ifdef CONFIG_BOARD_LATE_INIT
+int board_late_init(void)
+{
+       ti_set_fdt_env(NULL, NULL);
+       return 0;
+}
+#endif
-- 
2.34.1

Reply via email to