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 777FBC46467 for ; Tue, 10 Jan 2023 13:12:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12F998553D; Tue, 10 Jan 2023 14:11:29 +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="BrGDVrkb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2346385499; Tue, 10 Jan 2023 14:11:09 +0100 (CET) Received: from egress-ip4b.ess.de.barracuda.com (egress-ip4b.ess.de.barracuda.com [18.185.115.208]) (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 D466B8545D for ; Tue, 10 Jan 2023 14:10:48 +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-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx-outbound46-71.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 10 Jan 2023 13:10:45 +0000 Received: by mail-pg1-f197.google.com with SMTP id f132-20020a636a8a000000b00473d0b600ebso5228574pgc.14 for ; Tue, 10 Jan 2023 05:10:45 -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=eMkQrAOMaarBmpZbwhYgcd4bkawCyhA8UX9ToNPbUG0=; b=BrGDVrkbXJE+KugUrNcmPEsHywmA47cwJg0vgjJpTg55FWOEoVs+Nb3/3vHtPKXTc4 OnQNnlnLhKSyz4O45dJCTJApNfRJnIqwcswayoqx0stfL61F/u31+BXNlRUn2VlUx1zF g97ENskiBz3JafJGvLG4OFATZEt+jqwsXAgK8= 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=eMkQrAOMaarBmpZbwhYgcd4bkawCyhA8UX9ToNPbUG0=; b=ZP3lpxr/X+eMJhl7QZzgHe5dGRoWnfbU8RQrj0J3Js3MWPwaTKVQxG4RBXBzb+5Hg2 /Fq4Uk7Hg5ZLpFx1FVkV0+vWqzgP9YNuPcUKN2RQo/3mJmrm2XJAqSmB1T5XW2FDGxEI wbQe3oWbYXrDILa5MqFXPZcARJhSpE4q4PkHa/FldBbJTBjNTkq4qDY2UjawOCaDMM1q 4BiEdhq2zG34+Hrx8cQthrZfASvYTocUHE+peqUfj8wwnsb/uvIz4RvfUaZk3Xh+CIxO 9YodoiS1JwQXl8HOD7D68ePW09y+u5YFPvn7Oc+zuy8iYuk9EOdniYR5lMorseowJswc 2C+Q== X-Gm-Message-State: AFqh2krr2Pi1askY8s4WpunOAbsl8l+jPGa0Qq2uLNrOGQ4PAb7xHAes KqgzwxJJb7HkVE3N4uyN17tBJrYWIc65eWYz8JtS/6NoZr7unBSEbzTOsU1u6xZ/nh5fIBgh3uM PDCCDto7o5zxJAweJ+RQt2G61yfFd3s1vWV77Ha7/0zwUglyvXA== X-Received: by 2002:aa7:943b:0:b0:582:49d9:688d with SMTP id y27-20020aa7943b000000b0058249d9688dmr33662586pfo.3.1673356243971; Tue, 10 Jan 2023 05:10:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTIdsgEnkpHSfTtFOBRxeOhzsW4CLNBEUjTKBMjdGPYPo0o1AD3JBZJSOaYmIL0DRi07/TsA== X-Received: by 2002:aa7:943b:0:b0:582:49d9:688d with SMTP id y27-20020aa7943b000000b0058249d9688dmr33662572pfo.3.1673356243721; Tue, 10 Jan 2023 05:10:43 -0800 (PST) Received: from LAP568U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id 14-20020a630c4e000000b00478f87eaa44sm6654907pgm.35.2023.01.10.05.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 05:10:43 -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 V5 04/12] board: ti: j721s2: Add support to update board_name for am68-sk Date: Tue, 10 Jan 2023 18:40:08 +0530 Message-Id: <20230110131016.12480-5-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230110131016.12480-1-sinthu.raja@ti.com> References: <20230110131016.12480-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1673356245-311847-5640-6427-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.215.197 X-BESS-Outbound-Spam-Score: 0.40 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245374 [from cloudscan8-233.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.40 BSF_SC0_SA085b META: Custom Rule SA085b 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.40 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_SA085b, BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO 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 V5: ============= Add Reviewed-by tag 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..f223ccf2c6 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()); -- 2.36.1