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 E9293C433F5 for ; Fri, 8 Apr 2022 10:28:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E8B4C83E19; Fri, 8 Apr 2022 12:28:34 +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 0A90283DF0; Fri, 8 Apr 2022 12:28:23 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (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 9736483DED for ; Fri, 8 Apr 2022 12:28:14 +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.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MAP5I-1noLM82wos-00Bg8O; Fri, 08 Apr 2022 12:28:11 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Marcel Ziswiler Subject: [PATCH v1 22/24] configs: tdx: apalis/colibri_imx6: use preboot as well Date: Fri, 8 Apr 2022 12:28:08 +0200 Message-Id: <20220408102808.351486-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220408080719.342072-1-marcel@ziswiler.com> References: <20220408080719.342072-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:xh0KcVKhMHancXej7DJo9Wyg7KA5rbR3MUnfePbKlusUWKd1+aJ yHvUCKrl/+lkBn5hX8pT3drB4oVGp6eJif4NkV5xnnS0kFW+6NYVrfgzjRMasOr/NhoMnh/ i19D2TUCna3AGljxQXWvEcsUFiOtIYwRxOJObwIHrAQan1nk/Sr3MjB+QZrq+1bLNm6plWJ QeXWTD0NxaCinv8GuG/Bw== X-UI-Out-Filterresults: notjunk:1;V03:K0:39f7reXNggg=:2gadYwsx9k3wNkGGwH4A2K eKw5ohHvYwjzhn++q8Lm9854Wh+iC4wb60WqRmIrR7WB/ZYvzauzDFbOpw73wZSBg0nOYAuwV Z6DWx66M0DsC5ziIHXX1IbD7659blYEaJgEQNmDWnFN6o8Og7qD5qGT++X7uQUy9Ngz9bSwWu g7Zo6wm8lF6zUUZulbNC41TWCbTrLwYFEiIcWjWSIFh/8YMeZEE1FqPG1RqSRGZ7SvMIm6JTX HjdPs9AUxWRYRN7L+gpQktFpiWDdWT4IGNAEIqGbCtZA1kNunLaf1eUurINyxnOC5glDR5Bw7 jIwDcp31rH281tnJPR4oqK71N/RlBXgUKoM+16VmJy0itRokazGbK9VVAEUutDtpZV0iJpevD px6ssXjuzNNHJiHvNWUDnfQhvcTuNX/gz24CCvuK3Je1f/dAYkLucvGQ7X/g7buj1UqTLTSwO SbgUaEGROoT629Ato1Ta/DrluTgLASiCD6Q1RpXdXyYajzZcHf3Md2bW3IGKNx3pZVzgIAESD 4fXUOKuYHrBiN/gs5B0TAxT1IoWOz1mpcZe0TgfWnPGRQoU/OPCM6Q5e7+rfETeEC1s15jjBs ncMdJ6RIza1j6OpEMi7Ezvko16a6zHW3y0c/fos+O9BUD0KxPegun6eAIuDBFJqZzbPpzfSrh VwZEnu/fw79q2FBLjEP2jO+qGrWkJoQFHNRTUUl2xwC/UueUoqVX7Mg9GIhbO63Ft8GA= 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.5 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler Use PREBOOT as well. This allows a customer to just set fdt_board as on any other module to customize the device tree for his carrier board. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 2 ++ configs/colibri_imx6_defconfig | 2 ++ include/configs/apalis_imx6.h | 5 +---- include/configs/colibri_imx6.h | 4 +--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index 86216b6e034..28624b53e0c 100644 --- a/configs/apalis_imx6_defconfig +++ b/configs/apalis_imx6_defconfig @@ -29,6 +29,8 @@ CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_BOOTDELAY=1 CONFIG_BOOTCOMMAND="run distro_bootcmd; usb start; setenv stdout serial,vidconsole; setenv stdin serial,usbkbd" +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="test -n ${fdtfile} || setenv fdtfile imx6q-apalis-${fdt_board}.dtb" CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig index fed1ece5709..6ebb6845725 100644 --- a/configs/colibri_imx6_defconfig +++ b/configs/colibri_imx6_defconfig @@ -28,6 +28,8 @@ CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_BOOTDELAY=1 CONFIG_BOOTCOMMAND="run distro_bootcmd; usb start; setenv stdout serial,vidconsole; setenv stdin serial,usbkbd" +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="test -n ${fdtfile} || setenv fdtfile imx6dl-colibri-${fdt_board}.dtb" CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index 373843c0db4..b2a818629d1 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -90,16 +90,13 @@ "ramdisk_addr_r=0x12200000\0" \ "scriptaddr=0x17000000\0" -#define FDT_FILE "imx6q-apalis-eval.dtb" - #define CONFIG_EXTRA_ENV_SETTINGS \ BOOTENV \ "boot_file=zImage\0" \ "boot_script_dhcp=boot.scr\0" \ "console=ttymxc0\0" \ "defargs=enable_wait_mode=off vmalloc=400M\0" \ - "fdt_file=" FDT_FILE "\0" \ - "fdtfile=" FDT_FILE "\0" \ + "fdt_board=eval\0" \ "fdt_fixup=;\0" \ MEM_LAYOUT_ENV_SETTINGS \ UBOOT_UPDATE \ diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index ff3f3636ede..9a53dc51841 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -79,15 +79,13 @@ "ramdisk_addr_r=0x12200000\0" \ "scriptaddr=0x17000000\0" -#define FDT_FILE "imx6dl-colibri-eval-v3.dtb" #define CONFIG_EXTRA_ENV_SETTINGS \ BOOTENV \ "boot_file=zImage\0" \ "boot_script_dhcp=boot.scr\0" \ "console=ttymxc0\0" \ "defargs=enable_wait_mode=off galcore.contiguousSize=50331648\0" \ - "fdt_file=" FDT_FILE "\0" \ - "fdtfile=" FDT_FILE "\0" \ + "fdt_board=eval-v3\0" \ "fdt_fixup=;\0" \ MEM_LAYOUT_ENV_SETTINGS \ UBOOT_UPDATE \ -- 2.34.1