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 24C7EC54EBC for ; Tue, 10 Jan 2023 15:49:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E0DF855B3; Tue, 10 Jan 2023 16:49:16 +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="EIfUKFaM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B23D485524; Tue, 10 Jan 2023 16:48:24 +0100 (CET) Received: from egress-ip33a.ess.de.barracuda.com (egress-ip33a.ess.de.barracuda.com [18.185.115.192]) (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 B9E80854B1 for ; Tue, 10 Jan 2023 16:48:21 +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-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx-outbound11-148.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 10 Jan 2023 15:48:19 +0000 Received: by mail-pl1-f199.google.com with SMTP id d2-20020a170902cec200b001899479b1d8so8712204plg.22 for ; Tue, 10 Jan 2023 07:48:19 -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=BmKyRLVASwi/oPXwDokXaBQTGhmt0cJkKwoC+u5l5EI=; b=EIfUKFaMantfnwsTOu1oj5hLZY1cu+d1AbeL3SOrIwLUzrDn56K++dF4B8d2MLVzmM V7cpHDn12EmKylfWspBvg4RJD2iDAdr5SvLb4jDCg0tCOiM58BmAX0A4r7K2McJJwsxi RqZFWWB/MZQ5HK2+DbxdZRCAlQiohctmGyJWY= 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=BmKyRLVASwi/oPXwDokXaBQTGhmt0cJkKwoC+u5l5EI=; b=dtpX6YxPgEuLrks2Lme8ijqSurKQ90TUbs2bzLOHQtP4X1cjM7kwpmv618qv7dCbMo Kb/ZJYxerySyYlPYYtlP7EEFkoi/GXzwWwG6VDIuQLWNrXFTH/shwooDCI4aQbGvrsqD IHSsd/0vQKyjCABVuuXPywYNSO+pQXMAwTaV8rDU3JDAFFM0n3ieJ4rjntrxKTqbfbB1 0Z2XvFuNeMTSRjEKAz7us4thjkH2zwbyANkmQk8Md40+G1S1/sabHqT8/XVSFJ9tqVTQ EtNNVsmHiHnRCAzX2WOllX9WAmZhQ7WWq1klmOX4aT/WgPiwypQnLTZq0Hnrk00tPn5H Qoaw== X-Gm-Message-State: AFqh2kpR3Yy/2TvMa0lbVEkQSbnYyLFp9J+ul5S3rNvNB3AXZjCPEJoQ DEq0wtBy+1ZQGdHI0GZlmx/lciKE+EtEZyU1r80VjGp8IsPUidTk7rsJuLWcTlHNyjea2ycGJnZ sM+DFrcuEeJvLvB9RiIzd66itcmTCZAhYBIFmiGif7ndNJLpe8A== X-Received: by 2002:a05:6a20:b047:b0:b2:6105:e960 with SMTP id dx7-20020a056a20b04700b000b26105e960mr65166462pzb.32.1673365697800; Tue, 10 Jan 2023 07:48:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9AlqJ76rWKXdhTW1CfFAHMi/G1I8iU9/i2QieIZNxFDDPuYGTrcKEKifCheH3NKTVFAOCOQ== X-Received: by 2002:a05:6a20:b047:b0:b2:6105:e960 with SMTP id dx7-20020a056a20b04700b000b26105e960mr65166445pzb.32.1673365697443; Tue, 10 Jan 2023 07:48:17 -0800 (PST) Received: from localhost.localdomain ([49.207.204.53]) by smtp.gmail.com with ESMTPSA id z18-20020a63e112000000b004767bc37e03sm7047976pgh.39.2023.01.10.07.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 07:48:16 -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: [RESEND PATCH V5 04/12] board: ti: j721s2: Add support to update board_name for am68-sk Date: Tue, 10 Jan 2023 21:17:50 +0530 Message-Id: <20230110154758.16256-5-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230110154758.16256-1-sinthu.raja@ti.com> References: <20230110154758.16256-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1673365699-302964-5496-15429-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.214.199 X-BESS-Outbound-Spam-Score: 0.40 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245375 [from cloudscan8-85.eu-central-1a.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.40 BSF_SC0_SA085b META: Custom Rule SA085b 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.40 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_SC0_SA085b, BSF_BESS_OUTBOUND 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 4d28582311..063fc8c688 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