public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bryan Brattlof <bb@ti.com>
To: Lukasz Majewski <lukma@denx.de>,
	Sean Anderson <seanga2@gmail.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Nishanth Menon <nm@ti.com>, Georgi Vlaev <g-vlaev@ti.com>,
	Andrew Davis <afd@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
	Tom Rini <trini@konsulko.com>
Cc: UBoot Mailing List <u-boot@lists.denx.de>, Bryan Brattlof <bb@ti.com>
Subject: [PATCH 7/8] board: ti: introduce the basic files needed to support the am62a
Date: Thu, 3 Nov 2022 19:13:57 -0500	[thread overview]
Message-ID: <20221104001358.13353-8-bb@ti.com> (raw)
In-Reply-To: <20221104001358.13353-1-bb@ti.com>

Introduce the bare minimum SD and UART support for the am62a sk.

Signed-off-by: Bryan Brattlof <bb@ti.com>
---
 board/ti/am62ax/Kconfig               | 52 +++++++++++++++++++++++++++
 board/ti/am62ax/MAINTAINERS           |  9 +++++
 board/ti/am62ax/Makefile              |  7 ++++
 board/ti/am62ax/evm.c                 | 31 ++++++++++++++++
 drivers/firmware/ti_sci_static_data.h |  4 +--
 5 files changed, 101 insertions(+), 2 deletions(-)
 create mode 100644 board/ti/am62ax/Kconfig
 create mode 100644 board/ti/am62ax/MAINTAINERS
 create mode 100644 board/ti/am62ax/Makefile
 create mode 100644 board/ti/am62ax/evm.c

diff --git a/board/ti/am62ax/Kconfig b/board/ti/am62ax/Kconfig
new file mode 100644
index 0000000000000..2c18cd49b5d27
--- /dev/null
+++ b/board/ti/am62ax/Kconfig
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+choice
+	prompt "TI K3 AM62Ax based boards"
+	optional
+
+config TARGET_AM62A7_A53_EVM
+	bool "TI K3 based AM62A7 EVM running on A53"
+	select ARM64
+	select SOC_K3_AM62A7
+	imply BOARD
+	imply SPL_BOARD
+	imply TI_I2C_BOARD_DETECT
+
+config TARGET_AM62A7_R5_EVM
+	bool "TI K3 based AM62A7 EVM running on R5"
+	select CPU_V7R
+	select SYS_THUMB_BUILD
+	select K3_LOAD_SYSFW
+	select SOC_K3_AM62A7
+	select RAM
+	select SPL_RAM
+	select K3_DDRSS
+	imply SYS_K3_SPL_ATF
+	imply TI_I2C_BOARD_DETECT
+
+endchoice
+
+if TARGET_AM62A7_R5_EVM || TARGET_AM62A7_A53_EVM
+
+config SYS_BOARD
+       default "am62ax"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "am62ax_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
+
+if TARGET_AM62A7_R5_EVM
+
+config SPL_LDSCRIPT
+	default "arch/arm/mach-omap2/u-boot-spl.lds"
+
+endif
diff --git a/board/ti/am62ax/MAINTAINERS b/board/ti/am62ax/MAINTAINERS
new file mode 100644
index 0000000000000..590f683584e52
--- /dev/null
+++ b/board/ti/am62ax/MAINTAINERS
@@ -0,0 +1,9 @@
+AM62Ax BOARD
+M:	Vignesh Raghavendra <vigneshr@ti.com>
+M:	Bryan Brattlof <bb@ti.com>
+M:	Tom Rini <trini@konsulko.com>
+S:	Maintained
+F:	board/ti/am62ax/
+F:	include/configs/am62a7_evm.h
+F:	configs/am62ax_evm_r5_defconfig
+F:	configs/am62ax_evm_a53_defconfig
diff --git a/board/ti/am62ax/Makefile b/board/ti/am62ax/Makefile
new file mode 100644
index 0000000000000..4e8e7aa23003e
--- /dev/null
+++ b/board/ti/am62ax/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
diff --git a/board/ti/am62ax/evm.c b/board/ti/am62ax/evm.c
new file mode 100644
index 0000000000000..beef3f2f3da70
--- /dev/null
+++ b/board/ti/am62ax/evm.c
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62Ax platforms
+ *
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#include <asm/arch/hardware.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/io.h>
+#include <common.h>
+#include <dm/uclass.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <spl.h>
+
+int board_init(void)
+{
+	return 0;
+}
+
+int dram_init(void)
+{
+	return fdtdec_setup_mem_size_base();
+}
+
+int dram_init_banksize(void)
+{
+	return fdtdec_setup_memory_banksize();
+}
diff --git a/drivers/firmware/ti_sci_static_data.h b/drivers/firmware/ti_sci_static_data.h
index 5ae0556a9a453..1a461fab6199b 100644
--- a/drivers/firmware/ti_sci_static_data.h
+++ b/drivers/firmware/ti_sci_static_data.h
@@ -84,7 +84,7 @@ static struct ti_sci_resource_static_data rm_static_data[] = {
 };
 #endif /* CONFIG_SOC_K3_J721S2 */
 
-#if IS_ENABLED(CONFIG_SOC_K3_AM625)
+#if IS_ENABLED(CONFIG_SOC_K3_AM625) || IS_ENABLED(CONFIG_SOC_K3_AM62A7)
 static struct ti_sci_resource_static_data rm_static_data[] = {
 	/* BC channels */
 	{
@@ -95,7 +95,7 @@ static struct ti_sci_resource_static_data rm_static_data[] = {
 	},
 	{ },
 };
-#endif /* CONFIG_SOC_K3_AM625 */
+#endif /* CONFIG_SOC_K3_AM625 || CONFIG_SOC_K3_AM62A7 */
 
 #else
 static struct ti_sci_resource_static_data rm_static_data[] = {
-- 
2.38.1


  parent reply	other threads:[~2022-11-04  0:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04  0:13 [PATCH 0/8] Introduce initial TI's am62a support Bryan Brattlof
2022-11-04  0:13 ` [PATCH 1/8] arm: dts: introduce am62a7 dtbs from linux kernel Bryan Brattlof
2022-11-04 13:08   ` Tom Rini
2022-11-08 21:50     ` Bryan Brattlof
2022-12-09 22:53   ` Tom Rini
2022-11-04  0:13 ` [PATCH 2/8] arm: dts: introduce am62a7 u-boot dtbs Bryan Brattlof
2022-12-09 22:53   ` Tom Rini
2022-11-04  0:13 ` [PATCH 3/8] ram: k3-ddrss: add am62a controller support Bryan Brattlof
2022-11-04 13:08   ` Tom Rini
2022-12-09 22:53   ` Tom Rini
2022-11-04  0:13 ` [PATCH 4/8] soc: ti: k3-socinfo: add am62a SoC entry Bryan Brattlof
2022-11-04 13:08   ` Tom Rini
2022-12-09 22:53   ` Tom Rini
2022-11-04  0:13 ` [PATCH 5/8] arm: mach-k3: introduce basic files to support the am62a Bryan Brattlof
2022-12-09 22:53   ` Tom Rini
2022-11-04  0:13 ` [PATCH 6/8] arm: mach-k3: am62a: introduce auto-generated SoC data Bryan Brattlof
2022-12-09 22:54   ` Tom Rini
2022-11-04  0:13 ` Bryan Brattlof [this message]
2022-11-04 13:08   ` [PATCH 7/8] board: ti: introduce the basic files needed to support the am62a Tom Rini
2022-12-09 22:54   ` Tom Rini
2022-11-04  0:13 ` [PATCH 8/8] configs: introduce configs for " Bryan Brattlof
2022-12-09 22:54   ` Tom Rini
2022-11-04 11:49 ` [PATCH 0/8] Introduce initial TI's am62a support Peter Robinson
2022-11-04 13:08   ` Tom Rini
2022-11-04 15:02     ` Andrew Davis
2022-11-08 21:53       ` Bryan Brattlof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221104001358.13353-8-bb@ti.com \
    --to=bb@ti.com \
    --cc=afd@ti.com \
    --cc=g-vlaev@ti.com \
    --cc=jh80.chung@samsung.com \
    --cc=lukma@denx.de \
    --cc=nm@ti.com \
    --cc=seanga2@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox