From patchwork Tue Jul 25 15:54:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 1812726 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=eh7A8zXr; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R9M6W0kShz1ydq for ; Wed, 26 Jul 2023 01:54:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0CAC866F4; Tue, 25 Jul 2023 17:54:39 +0200 (CEST) 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="eh7A8zXr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B245286698; Tue, 25 Jul 2023 17:54:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 72ECD8638E for ; Tue, 25 Jul 2023 17:54:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=afd@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36PFsJa8061524; Tue, 25 Jul 2023 10:54:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690300459; bh=tC+F7u7MeOWLBSIyrwYiHvTqX0Ito81Vv19g7Rh5J2U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eh7A8zXrUzYI5xXbxCJaj70Mze4bFafWOrbLs2SYAMYR9yRUEqC6KIpZU3imBkTwu EN8ndIM/fu8EfrSyQubiM8UStx8Ow8u0NhgOkMaUmbVCO90avAThFBMPliUTqDyrcv SS+ZETFQWMXmSonsRUaFOA6z+YHy27oIUQYQVA9s= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36PFsIHv121048 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 10:54:18 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 25 Jul 2023 10:54:18 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 25 Jul 2023 10:54:18 -0500 Received: from fllv0040.itg.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36PFsHlh027497; Tue, 25 Jul 2023 10:54:18 -0500 From: Andrew Davis To: Simon Glass , Tom Rini , Nishanth Menon , Vignesh Raghavendra , CC: Andrew Davis Subject: [PATCH 2/2] ti: keystone2: Move common Kconfig selections to under ARCH_KEYSTONE Date: Tue, 25 Jul 2023 10:54:16 -0500 Message-ID: <20230725155416.100678-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230725155416.100678-1-afd@ti.com> References: <20230725155416.100678-1-afd@ti.com> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean These select/imply settings are common to the whole architecture not just these boards, move these settings to the architecture config. Signed-off-by: Andrew Davis Reviewed-by: Tom Rini --- arch/arm/Kconfig | 5 +++++ arch/arm/mach-keystone/Kconfig | 20 -------------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c019e56d404..a778edb7be4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -783,16 +783,21 @@ config ARCH_IPQ40XX config ARCH_KEYSTONE bool "TI Keystone" + select CMD_DDR3 select CMD_POWEROFF select CPU_V7A select DDR_SPD + select SPL_BOARD_INIT if SPL select SUPPORT_SPL select SYS_ARCH_TIMER select SYS_THUMB_BUILD imply CMD_MTDPARTS imply CMD_NFS imply CMD_SAVES + imply DM_I2C imply FIT + imply SOC_TI + imply TI_KEYSTONE_SERDES config ARCH_K3 bool "Texas Instruments' K3 Architecture" diff --git a/arch/arm/mach-keystone/Kconfig b/arch/arm/mach-keystone/Kconfig index 94e6fe1f228..9bf71a9b453 100644 --- a/arch/arm/mach-keystone/Kconfig +++ b/arch/arm/mach-keystone/Kconfig @@ -7,40 +7,20 @@ choice config TARGET_K2HK_EVM bool "TI Keystone 2 Kepler/Hawking EVM" select SOC_K2HK - select SPL_BOARD_INIT if SPL - select CMD_DDR3 - imply DM_I2C - imply SOC_TI - imply TI_KEYSTONE_SERDES config TARGET_K2E_EVM bool "TI Keystone 2 Edison EVM" select SOC_K2E - select SPL_BOARD_INIT if SPL - select CMD_DDR3 - imply DM_I2C - imply SOC_TI - imply TI_KEYSTONE_SERDES config TARGET_K2L_EVM bool "TI Keystone 2 Lamar EVM" select SOC_K2L - select SPL_BOARD_INIT if SPL - select CMD_DDR3 - imply DM_I2C - imply SOC_TI - imply TI_KEYSTONE_SERDES config TARGET_K2G_EVM bool "TI Keystone 2 Galileo EVM" select BOARD_LATE_INIT select SOC_K2G - select SPL_BOARD_INIT if SPL select TI_I2C_BOARD_DETECT - select CMD_DDR3 - imply DM_I2C - imply SOC_TI - imply TI_KEYSTONE_SERDES endchoice