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 DE303EB64D9 for ; Tue, 4 Jul 2023 18:10:32 +0000 (UTC) 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) 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 Content-Transfer-Encoding: 8bit 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 -- 2.34.1