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 A38A2C4332F for ; Wed, 21 Dec 2022 13:56:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E84C85468; Wed, 21 Dec 2022 14:54:39 +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="eI/aGln3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3858F8548C; Wed, 21 Dec 2022 14:54:18 +0100 (CET) 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 761E385475 for ; Wed, 21 Dec 2022 14:54:01 +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-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) 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:54:00 +0000 Received: by mail-pj1-f71.google.com with SMTP id x6-20020a17090a46c600b002190cdd7bcdso1187691pjg.6 for ; Wed, 21 Dec 2022 05:54:00 -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=dqOlktZitavmFUwNm9vkd3cXtAUXSsEKG+V6pGxeHhs=; b=eI/aGln3fXcgZNmwt/BXbXoacT7A4xLe0sq4cSVWUDkZrB5Ebh6F6A7Xa7QSR3PKQw we4qgrGct2tPbvRcjV1AFOA+6RneBYYLbLRLr9g91m7+eTGeITXnR94ZYN5UtLRPuTWC 2jiDAxY8lOf0HA2U7CWR10nH3D8IqTvhOqjz0= 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=dqOlktZitavmFUwNm9vkd3cXtAUXSsEKG+V6pGxeHhs=; b=x9EhQMbgtA0HZ5lurxoPJkl+GN+BW7O2WLqdrhW1bhZ2Ah84u0810KpUUWMS6qS4/+ Pq0Sj+1OJiklMVTTnepyFmIHM40nF9y7fP3tsKGdq7fIbwA/6TEz4lIuV9X23r75FtZE JENgCEZCIfCJY1P6y0lV4haCaWnpatQQrDn4sUMRaqvlons/HyWE9uKwI7FN63QPBwLH XL3S2aTIp08vEAJ9gL4oUYiDNXX/m1QKs4pstydhpxqgkChAHI6TVzgQ2FAp/xjdbj6m sGa+yLe1ayEEBIJKEAvdb18TGNQjNM9OcWTSYRT9GE/jdj4V/K7FL86rmpHzCME14Hl7 N4dQ== X-Gm-Message-State: AFqh2koOUfKe87ZhAZJZBWwF+0jq6q7n247J70teCjwLURWxQ9X4QVnK peOpWSdB29Ld5P+F1Cx7mYTPCyhnl7/JU1BXjbpRI/o8fKW//Au6C7SBsewPTGMnDVxVVhRA8PC UNWfv5nsTrFTawXEsg6KyjKZcTgaZMsRlbusfDrSlHF18hrb+rA== X-Received: by 2002:a17:902:f24c:b0:189:89b1:ac95 with SMTP id j12-20020a170902f24c00b0018989b1ac95mr1974836plc.29.1671630838263; Wed, 21 Dec 2022 05:53:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtZmZr+ssVACwRmKXHei2xi/XFtq/SURUhT9UaKDQ8YhCd/sgSbEx/wC6v0RC6dTlbHvNVmFA== X-Received: by 2002:a17:902:f24c:b0:189:89b1:ac95 with SMTP id j12-20020a170902f24c00b0018989b1ac95mr1974796plc.29.1671630837402; Wed, 21 Dec 2022 05:53:57 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 05:53:56 -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 12/12] include: configs: Update env for selecting right dtb Date: Wed, 21 Dec 2022 19:22:19 +0530 Message-Id: <20221221135219.24702-13-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 Content-Transfer-Encoding: 8bit X-BESS-ID: 1671630839-302698-5386-10073-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.244945 [from cloudscan19-82.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 X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, 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 Now that single defconfig shall be used for booting J721S2 EVM and AM68 SK, the default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Sinthu Raja --- include/configs/j721s2_evm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/configs/j721s2_evm.h b/include/configs/j721s2_evm.h index 932d7d3c8c..715f03048a 100644 --- a/include/configs/j721s2_evm.h +++ b/include/configs/j721s2_evm.h @@ -32,6 +32,10 @@ "default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "findfdt=" \ "setenv name_fdt ${default_device_tree};" \ + "if test $board_name = j721s2; then " \ + "setenv name_fdt k3-j721s2-common-proc-board.dtb; fi;" \ + "if test $board_name = am68-sk; then " \ + "setenv name_fdt k3-am68-sk-base-board.dtb; fi;"\ "setenv fdtfile ${name_fdt}\0" \ "name_kern=Image\0" \ "console=ttyS2,115200n8\0" \ -- 2.36.1