From patchwork Tue Jul 4 18:10:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 1803338 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 (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=pUfPT/ng; 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 4QwW6y1t1gz20ZC for ; Wed, 5 Jul 2023 04:10:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B52BE8556F; Tue, 4 Jul 2023 20:10:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="pUfPT/ng"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2DA8B85F52; Tue, 4 Jul 2023 20:10:20 +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,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1B72985DB6 for ; Tue, 4 Jul 2023 20:10:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C6FE6133B; Tue, 4 Jul 2023 18:10:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65E99C433C9; Tue, 4 Jul 2023 18:10:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688494216; bh=ilpyKs/FZ+Qq8QNdm9vLUihaWPVpDw4I6loGTDUUEDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pUfPT/ngbi/I3Pg5nlLreWyHGwSA53zIWxfQ9PstIf2l2BlnxMMbj55ThW6Ij3bo0 45jzExQSA2/v8W6ofRiQo7+dNh/EiR3LKbDicRO9my3yWlc95QbK0JOD3hJWPJ+Ij7 Txx99EilzUy8eeeo1dEl9JrAQonumxHKF9j4K5VSQrutDStoxYjPAronK+l8kO8Lyq /iIovUKf04aRibbYPF3WtaI711zcktksiSrMTH8qPXdoR/5EQQCDbl8mXw7+LH6exO NyHgbdck6VpgaK5ILMdzAkA0H1CWlnnHiEKpeA+UQwKwDkfrnTxF1ShsZ2oCOnwa9n 06e31RYDEksUQ== From: Roger Quadros To: vigneshr@ti.com, trini@konsulko.com Cc: nm@ti.com, srk@ti.com, u-boot@lists.denx.de, Roger Quadros Subject: [PATCH 1/6] board: ti: am64x: Recognize AM64-HSEVM Date: Tue, 4 Jul 2023 21:10:03 +0300 Message-Id: <20230704181008.305561-2-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230704181008.305561-1-rogerq@kernel.org> References: <20230704181008.305561-1-rogerq@kernel.org> MIME-Version: 1.0 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 use "am64x_evm" board name in environment for both AM64-GPEVM and AM64-HSEVM. Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header" Signed-off-by: Roger Quadros --- board/ti/am64x/evm.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c index 96f4e3013a..42795cbd22 100644 --- a/board/ti/am64x/evm.c +++ b/board/ti/am64x/evm.c @@ -18,7 +18,8 @@ #include "../common/board_detect.h" -#define board_is_am64x_gpevm() board_ti_k3_is("AM64-GPEVM") +#define board_is_am64x_evm() (board_ti_k3_is("AM64-GPEVM") || \ + board_ti_k3_is("AM64-HSEVM")) #define board_is_am64x_skevm() (board_ti_k3_is("AM64-SKEVM") || \ board_ti_k3_is("AM64B-SKEVM")) @@ -57,7 +58,7 @@ int board_fit_config_name_match(const char *name) { bool eeprom_read = board_ti_was_eeprom_read(); - if (!eeprom_read || board_is_am64x_gpevm()) { + if (!eeprom_read || board_is_am64x_evm()) { if (!strcmp(name, "k3-am642-r5-evm") || !strcmp(name, "k3-am642-evm")) return 0; } else if (board_is_am64x_skevm()) { @@ -182,13 +183,13 @@ int checkboard(void) #ifdef CONFIG_BOARD_LATE_INIT static void setup_board_eeprom_env(void) { - char *name = "am64x_gpevm"; + char *name = "am64x_evm"; if (do_board_detect()) goto invalid_eeprom; - if (board_is_am64x_gpevm()) - name = "am64x_gpevm"; + if (board_is_am64x_evm()) + name = "am64x_evm"; else if (board_is_am64x_skevm()) name = "am64x_skevm"; else