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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B290EC433F5 for ; Fri, 8 Oct 2021 00:29:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3852B61038 for ; Fri, 8 Oct 2021 00:29:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3852B61038 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A90D683395; Fri, 8 Oct 2021 02:29:36 +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 7C0D783560; Fri, 8 Oct 2021 02:28:57 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (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 DBED1833E3 for ; Fri, 8 Oct 2021 02:28:42 +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 (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LlU7F-1n5mZq2S0d-00bGwF; Fri, 08 Oct 2021 02:28:33 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Fabio Estevam , Stefano Babic , Heiko Thiery , Frieder Schrempf , Igor Opaniuk , Marcel Ziswiler , Igor Opaniuk , Jaehoon Chung , Marek Vasut , Max Krummenacher , Simon Glass Subject: [PATCH v5 09/10] verdin-imx8mm: use preboot for fdtfile evaluation Date: Fri, 8 Oct 2021 02:28:14 +0200 Message-Id: <20211008002815.870313-10-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211008002815.870313-1-marcel@ziswiler.com> References: <20211008002815.870313-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:W7wAsQwDnk3qI1dPYKhxwZewjFMmgssaD4ybvUvfhmASdW+Y7J/ A4QY6Jolb8HeOKQUXMV5R++lrlZ3h3sk66J0BSPdsbWYv62u56QysRvUvZyb5SlkNasvIn/ w0DjYfO6W30wgt3khcNne10be3ZcBYOsvJHvUZ8AGR5zMjpKlmEeM9uVkpC7RISpWBNdEkN tk8N/0Fxf3sHIpn+Cwm7g== X-UI-Out-Filterresults: notjunk:1;V03:K0:jlF0o3rLOjA=:JkzuEqIDJFB/4P7gUHxUU1 JR+P1+2UVvIsslwiOjC2/s58tCdTS70zSZzlBSdUQYPtiCt+MtZS0K0NWXfsoiwZsP8Ix2y8k sBHUGqrXXwgKxPv6JS4dNkfHsmoa5WVa6CAYwvdy8cm7+ASGkcXefgzu7+jT/9VW5OJh6Mi0U iL7h+MUIO8Bcd2QFGGP+5IZoLvGicjqphtaM7sl3zEnldtgUmDd2kzh9mJt3Pl5KPuYBX/xIV xuv1ZdDId5jhjOykCsMhCLN0n1+pqYtRPSwsCSaCbGTDYdUE0w7o+N5q5YM+tVXkjEA6wyStg iFf9qh2bh21bi3CB4zMZWcKuT3qhWbjwP7e3uATxwnoZldmox2H4/MjfQGlIZmxWiLF/5109Y k4l64vBqaw96UUTVacpx3AZDC/Fikm8p71QuQABIR0qLvMw1a5nfix5Pj2VkmQcaU35pcVz8F 7QxZ9fI3ulDK/Tr/TeCn0vNDgThtgrVhxNAU1OLm9+SYrlJcxEbH//20lwpj3nCqfOAGRf0xb mjWYGpZdwhbMBbQInZReeVp5XYarq5ERCFKevnr3sMBenC42aN2WBmW4UQVr8o0ZfdSJpMdk5 qOKqfx2vbnmc5NFB3jjrCwhyZ21NFcIOUCVVVQ23KgxIBFLuRDNzajboURMYxWBgnyapzzIys JmoVxM21rjiRohoFVtWmQwQbA1zFB5R92TIj1hN0mlFQoUiGLh5lfFi17QitnhM5IppG9+fH5 4CO6tKEuuIpIJBgvklogsfIZqdsoVQMdDMmjGQ== 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 -- 2.26.2