From patchwork Wed Oct 6 21:27:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 1537403 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) 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 RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HPnfV6hbmz9sXS for ; Thu, 7 Oct 2021 08:29:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ECD6B83484; Wed, 6 Oct 2021 23:29:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 67EFC8341B; Wed, 6 Oct 2021 23:28:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) (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 886CC8340A for ; Wed, 6 Oct 2021 23:28:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.toradex.int ([66.171.181.186]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LllQs-1n7ZDD0Hse-00ZO9q; Wed, 06 Oct 2021 23:28:23 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Stefano Babic , Heiko Thiery , Fabio Estevam , Frieder Schrempf , Igor Opaniuk , Marcel Ziswiler , Igor Opaniuk , Jaehoon Chung , Marek Vasut , Max Krummenacher , Simon Glass Subject: [PATCH v4 09/10] verdin-imx8mm: use preboot for fdtfile evaluation Date: Wed, 6 Oct 2021 23:27:55 +0200 Message-Id: <20211006212757.464740-10-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211006212757.464740-1-marcel@ziswiler.com> References: <20211006212757.464740-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:nk+PAZLgS+FsGw0RTuxKcq9f39XiXBz9HwZ9m1bSb0xmy5dzHNc aUp6M8OG1Jdcb7L23RUyjFFbbJkLCvBuq6MG+SXT2IjndJhGQAGs5LZRCFGTL3qLzOw0qeB YdheM83QEYpn3C8QlocR+/tqE7QHRca1iQd+dU1UBIKADWtWdxobKZL44qQIa9vx4A0m81Z krE2dt9OmBYZmBL91Ah8w== X-UI-Out-Filterresults: notjunk:1;V03:K0:mauaYFlpfZc=:Yj45ccf54Hfq8s9QROMB4G 4L7FFTpAHYBF0V5+ioVFmQlqxLkUXGh17yen/ePY6XDgRYE1vF7q9334SRXncvjwPRKFIw709 vqErQscJlbab3N2yvQFKo0YChnqR7soLtwrMbfwvd5x/8UU0JUMbEcP6OtfV1TFJuXHM3AWyu x2OKWnreUaq96bjNfhqgJrcj8IBc90HsybVzXVhvjsXm5AmtjzhWZMak7gIa8JpvHBQavDoym YNsIVRf4t8LEcBuAr9aGMc04vD6WjugDIpUAgqJzyCqH+D5YPaL+ZvGzv7Eo7h2zpq+JB4+5H UCu9+g5mnsYeV5y5pVu2KarQjvlPG/kCEpYgZ15kBKF2s1Tic+XoqIp6ApRnYzZIUvHEPkIHI zpTxMroJPcDo8BPi1spQVWhgK6aPWHkBbWbNwmd2Iftts/sz+N9iB56a44pDG/t+GMCrLVXM7 Defsctd25fGYR5aj4RxT4qibjwHDP7CF2lYtHiMtA80gfcjAxYcMdQ7xJvnGIEB92m5z+Z/VV n5fXFAiEcNUVsH52H0HtmOZA/ylFaIc7ntXcMBrfJ1B7U4IXNMlnhoPafIno1zHCy76bezGzS VnW6FbLwXT8UnKIDWNNgrsq+FMA/7SPEblx6GVGJkwaMkZe9z7n5S5+sHIdhG/8P+vdCDqdjY 8InUbXzCRGUosb76zV+dM8245TLNdzuCCutjkp+0RneVZ08ks2QLvFjnLzrjPUJKz9SprGJs3 IK1xVMFFyQIQ7E/6aRgcld/purJUjR6t8JeOBg== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk Enable and set preboot var with fdtfile evaluation. It will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive mode without manual setting fdtfile value, as it it's already evaluated before entering interactive mode. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- (no changes since v2) Changes in v2: - New patch addressing dynamic fdtfile definition. configs/verdin-imx8mm_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig index ced0d0acc37..ed14ff3b114 100644 --- a/configs/verdin-imx8mm_defconfig +++ b/configs/verdin-imx8mm_defconfig @@ -26,7 +26,8 @@ CONFIG_SPL_LOAD_FIT=y # CONFIG_USE_SPL_FIT_GENERATOR is not set CONFIG_OF_SYSTEM_SETUP=y # CONFIG_USE_BOOTCOMMAND is not set -CONFIG_DEFAULT_FDT_FILE="fsl-imx8mm-verdin-dev.dtb" +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="setenv fdtfile imx8mm-verdin-${variant}-${fdt_board}.dtb" CONFIG_LOG=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y