From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4725C433FE for ; Fri, 4 Nov 2022 00:15:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B9408519A; Fri, 4 Nov 2022 01:14:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="UWfhsH+/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 97AC884198; Fri, 4 Nov 2022 01:14:23 +0100 (CET) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9B47B8516B for ; Fri, 4 Nov 2022 01:14:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bb@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A40E7QC085143; Thu, 3 Nov 2022 19:14:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667520847; bh=r5xpsj9qM1tHwl9+XQhPhhvmKQWBye5jSEk3tmbVslI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UWfhsH+/LQ6COlJNMbbUSxZX7YOsQcOiO8ogTNdPaaf8Zxc8/GjUyT5HgJx7H1GsB 7eyRhHMxlekJfkX0PFa5UB7nH37GeoD59hGzbUZD7rgq8yUcmLSojk65lBxJEe/EfF e/bdMcNHdIbYTtL3i+rirE7pFIcQC2kLzmA45dXI= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A40E7Dh002276 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Nov 2022 19:14:07 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Thu, 3 Nov 2022 19:14:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Thu, 3 Nov 2022 19:14:06 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A40E69n017081; Thu, 3 Nov 2022 19:14:06 -0500 From: Bryan Brattlof To: Lukasz Majewski , Sean Anderson , Jaehoon Chung , Nishanth Menon , Georgi Vlaev , Andrew Davis , Vignesh Raghavendra , Tom Rini CC: UBoot Mailing List , Bryan Brattlof Subject: [PATCH 7/8] board: ti: introduce the basic files needed to support the am62a Date: Thu, 3 Nov 2022 19:13:57 -0500 Message-ID: <20221104001358.13353-8-bb@ti.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221104001358.13353-1-bb@ti.com> References: <20221104001358.13353-1-bb@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4278; i=bb@ti.com; h=from:subject; bh=Z7/IUL4L6su+MFMXrGmcgytXEunOdYNH3NVDSsJMZdA=; b=owNCWmg5MUFZJlNZ4+hm6AAAaX////fff7X32zz3dZ/73t2784W/8rYHfX7/S/6/0LX97XewARs1 CHqA0BoyA9QNAaeoAAA0AAGj1NNAAaADR6mgDQANAPUABiNqDIeoeo2mp5NRAZNNAGIDQ0DTQAMgHq aaB6gaNDQ0AMgGjJk9I0AA0epoaA9QBo9T1PU00BoNqD1CGh6QHpA0NDQDQaMhkwmQADIAAaaYRgCG JgIZBoDQaaAyZMQA0ADQAAAnRA3AMKjAiwaGNpOmchLm2sR+TdFoo3JR0BzBFIcvscM169YRm5u90o TPRmEvN02n9FrTnHpwCjOEZNxIGuggMAlHB0oixgNupgVPgGxTn+WTxT5PCg/spQ2Td7NA3jjSgPJU tl5TD0sgW3jZ9W1IsWW5r7bHrmQkK40bAcEQENq5n4NyZ7qsrXOUVNCCq9lQpaxejYHxVK2VWci2is 1HXjeB1euPuBrd1MkqcSJfQhl4JW9FpQn1GDiD9z4VBdHgiH46D7DTnPceAFE4i0KwKjIglvyuakuK q+FOLc0NUQrg0nYGPfDSwqsLjJ+NR5XGujuH46R7iCB1mNiahXVydx4B1dfPEfiOnPMDJBMV94BCkn mAeqYQEcAhLfiOTOSMAQl6I1sHnFqEDEy7OszgczYFVib+yQCyzTmWakZEm/4u5IpwoSHH0M3Q X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Introduce the bare minimum SD and UART support for the am62a sk. Signed-off-by: Bryan Brattlof --- 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 +M: Bryan Brattlof +M: Tom Rini +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 +#include +#include +#include +#include +#include +#include +#include + +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