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 0DD61EB64DA for ; Wed, 5 Jul 2023 08:02:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6428384791; Wed, 5 Jul 2023 10:01:59 +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="DonYtc1H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DBF2D860AA; Wed, 5 Jul 2023 10:01:57 +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 A4FE1846AA for ; Wed, 5 Jul 2023 10:01:55 +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 6FDA66140C; Wed, 5 Jul 2023 08:01:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B14B5C433C8; Wed, 5 Jul 2023 08:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688544112; bh=XkBEhaUGCuvA9WlZqlFCBlYvLy72fOCw5cii2fxKvSg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DonYtc1HNpvSmsXOjbWKtkIHMjKbTfRTgXe9FdaoyAebZ7lHH3Rf8vBQAItcHmVnD u0KuC8tKY4NQtWSgAxcPYdB65Jo3hlMIhdie/pkqODs42Gm9av4QC2RgAoOtYspWOr pvMRJ7bCd7kvBEqoChaSdmSe3sP1qxyci5NZ/lVoQG5NOjn+RX7q+QEVFk0CsNvMBF /FdSwz0GPNx12fC6LrhX42bDVJ0B6BKqZxqB0860j9zJ2B0XxRlQHy4BcXXaxTgSmj M8Ybfa/peAnU26qIASLs0yWBmtimfnB2xttLDYJbi7pr4z+im+QzTFzzIwMFIvETRo 6S9VBmjIIKxgw== Message-ID: <56ad8632-c0c7-702c-c16e-21943ad37b1c@kernel.org> Date: Wed, 5 Jul 2023 11:01:48 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/6] board: ti: am64x: Recognize AM64-HSEVM Content-Language: en-US To: vigneshr@ti.com, trini@konsulko.com Cc: nm@ti.com, srk@ti.com, u-boot@lists.denx.de References: <20230704181008.305561-1-rogerq@kernel.org> <20230704181008.305561-2-rogerq@kernel.org> From: Roger Quadros In-Reply-To: <20230704181008.305561-2-rogerq@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 04/07/2023 21:10, Roger Quadros wrote: > 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"; "board/ti/am64x/am64x.env: if test $board_name = am64x_gpevm; then" So I think it was a bad idea to change the name here. Will revert this change. > else if (board_is_am64x_skevm()) > name = "am64x_skevm"; > else -- cheers, -roger