From patchwork Wed Dec 21 13:52:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinthu Raja X-Patchwork-Id: 1718320 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=mistralsolutions.com header.i=@mistralsolutions.com header.a=rsa-sha256 header.s=google header.b=otBNi+z4; 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 4NcZgP0Yq7z1ydb for ; Thu, 22 Dec 2022 00:54:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E52CA8547C; Wed, 21 Dec 2022 14:53:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.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=mistralsolutions.com header.i=@mistralsolutions.com header.b="otBNi+z4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAB2985465; Wed, 21 Dec 2022 14:53:41 +0100 (CET) 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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from egress-ip4a.ess.de.barracuda.com (egress-ip4a.ess.de.barracuda.com [18.184.203.227]) (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 2B46C8540D for ; Wed, 21 Dec 2022 14:53:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sinthu.raja@mistralsolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx-outbound10-138.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Dec 2022 13:53:35 +0000 Received: by mail-pg1-f200.google.com with SMTP id e11-20020a63d94b000000b0048988ed9a6cso5915060pgj.1 for ; Wed, 21 Dec 2022 05:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2KeBu/d9xeNb5uQBCAJYiYA5ivm+2SJko5StUvNcBzQ=; b=otBNi+z4litFkvItQc+QFPaz8FK5qvzqG7r7DYZB4KzeeuXDQ38mtViAs0hoxFQLKF YjezqnZO9IZnnjdOEwNqStQmvPk7fO8hhkVBQhAO3NEeciscBhNJTvrrku5gDFhAr1KH fPuirJE/MXFlnli4fLkfdRjdMWyT35jY3qRL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2KeBu/d9xeNb5uQBCAJYiYA5ivm+2SJko5StUvNcBzQ=; b=7RS5QHUxkvWzvTJu3oD1uN6SbLqJPV4DuHg4ydYN4Gy9PvNsKYgeAyNJeBo0M0ZPrR ysP3eJeljR8/ZfNF4Ptj/LG4u5XJoCe6paZDy5WSvdd3xmKLs5dVIkecop0OOUyEfbhO CaRTWp9hrmMz9IQxFz+eBWPMjeOwaekwytR/840rHjIWk9Y5JzbQVBjKCephF899hFgJ /TBXSQGX1C7yLQVWA20Qokc7RHX6PTgqdCQ2PtgYyjrCLOx+YaGQraUxyfB3pGppzS0Z 4JI5A7lRZClhDRNXaoVUmMhcucH+f4Dix9JIdzr8TWd+/BGykSS6WxCIKOS1HGaflBKW Zhew== X-Gm-Message-State: AFqh2krkZTnnbCTeKSCpmMtjSZMg+p/RD4pRTMJt2zOTWlHgrcDlshhv u69u3/OVd/y7X2Tvgit0JEnWCT37MMrapf7r3oiKacmmD4D2WyWpjh3W3/W/ffAOERMjneG4ENQ OhFHRqgqljBnX/HA+pcrE/fCYuAQf0JZGuxRzUKc0u71jwc8QmQ== X-Received: by 2002:a17:903:1092:b0:189:e757:ff1 with SMTP id u18-20020a170903109200b00189e7570ff1mr1664536pld.47.1671630813711; Wed, 21 Dec 2022 05:53:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRzgOzlmChkhDKQSZFuMsUzmrwQ7DFxhs1S1nEct8nHKpMJ4cpsDGT2g1+8pHMP23oLid0bw== X-Received: by 2002:a17:903:1092:b0:189:e757:ff1 with SMTP id u18-20020a170903109200b00189e7570ff1mr1664516pld.47.1671630813448; Wed, 21 Dec 2022 05:53:33 -0800 (PST) Received: from LAP568U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id n15-20020a170902d2cf00b00189f2fdc178sm11474891plc.177.2022.12.21.05.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 05:53:32 -0800 (PST) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: u-boot@lists.denx.de, Tom Rini , Marcel Ziswiler , Marek Vasut , Vignesh Raghavendra Cc: Sinthu Raja Subject: [PATCH V2 04/12] board: ti: j721s2: Add support to update board_name for am68-sk Date: Wed, 21 Dec 2022 19:22:11 +0530 Message-Id: <20221221135219.24702-5-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221221135219.24702-1-sinthu.raja@ti.com> References: <20221221135219.24702-1-sinthu.raja@ti.com> MIME-Version: 1.0 X-BESS-ID: 1671630814-302698-5383-10049-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.215.200 X-BESS-Outbound-Spam-Score: 0.40 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.244945 [from cloudscan20-137.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.40 BSF_SC0_SA085b META: Custom Rule SA085b X-BESS-Outbound-Spam-Status: SCORE=0.40 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_BESS_OUTBOUND, BSF_SC0_SA085b X-BESS-BRTS-Status: 1 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 From: Sinthu Raja Update setup_board_eeprom_env() to choose the right board name for am68-sk. Signed-off-by: Sinthu Raja Reviewed-by: Tom Rini --- Changes in V2: ============= Address review comments: - Move board_is_xxx within CONFIG_TI_I2C_BOARD_DETECT block to maintain the "mini" U-Boot concept for this SoC. V1: https://patchwork.ozlabs.org/project/uboot/patch/20221027104846.11820-5-sinthu.raja@ti.com/ board/ti/j721s2/evm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c index e09adc8ad3..de885085b3 100644 --- a/board/ti/j721s2/evm.c +++ b/board/ti/j721s2/evm.c @@ -26,8 +26,6 @@ #include "../common/board_detect.h" -#define board_is_j721s2_som() board_ti_k3_is("J721S2X-PM1-SOM") - DECLARE_GLOBAL_DATA_PTR; int board_init(void) @@ -101,6 +99,14 @@ int ft_board_setup(void *blob, struct bd_info *bd) #endif #ifdef CONFIG_TI_I2C_BOARD_DETECT +/* + * Functions specific to EVM and SK designs of J721S2/AM68 family. + */ + +#define board_is_j721s2_som() board_ti_k3_is("J721S2X-PM1-SOM") + +#define board_is_am68_sk_som() board_ti_k3_is("AM68-SK-SOM") + int do_board_detect(void) { int ret; @@ -136,6 +142,8 @@ static void setup_board_eeprom_env(void) if (board_is_j721s2_som()) name = "j721s2"; + else if (board_is_am68_sk_som()) + name = "am68-sk"; else printf("Unidentified board claims %s in eeprom header\n", board_ti_get_name());