]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: tdx: apalis/colibri_imx6: use preboot as well
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 13 Apr 2022 09:33:35 +0000 (11:33 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:23 +0000 (12:44 +0200)
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 <marcel.ziswiler@toradex.com>
configs/apalis_imx6_defconfig
configs/colibri_imx6_defconfig
include/configs/apalis_imx6.h
include/configs/colibri_imx6.h

index 00c9a24a5dd8353703d7496cbbf377ff4e6d2b07..ea4ad276e7f2eebf6df1d0a46270e722bfa5954f 100644 (file)
@@ -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
index 1c65d8a7fe1537c834db17ee7190a883a3b15ffe..4f38d5cb4839a4bc6b5cdaee53228f73bc005fc2 100644 (file)
@@ -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
index 57fd3ce12d07e212d57c855b1c002f685955fc4a..aa93d10f852d761ac19bac1e845878bd0fec6d7e 100644 (file)
        "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 \
index f7e9709e1222fff2e066104b6f9b78c75a680ccc..9ca6bef192fd1fdf9a417dad3a37c428696c53d7 100644 (file)
        "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 \