]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
engicam: Set fdt_file env during run-time
authorJagan Teki <jagan@amarulasolutions.com>
Sat, 6 May 2017 21:13:04 +0000 (02:43 +0530)
committerStefano Babic <sbabic@denx.de>
Thu, 11 May 2017 10:57:44 +0000 (12:57 +0200)
Set fdt_file env variable during board_late_init

Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
19 files changed:
board/engicam/geam6ul/geam6ul.c
board/engicam/icorem6/icorem6.c
board/engicam/icorem6_rqs/icorem6_rqs.c
board/engicam/isiotmx6ul/isiotmx6ul.c
configs/imx6dl_icore_mmc_defconfig
configs/imx6dl_icore_nand_defconfig
configs/imx6dl_icore_rqs_mmc_defconfig
configs/imx6q_icore_mmc_defconfig
configs/imx6q_icore_nand_defconfig
configs/imx6q_icore_rqs_mmc_defconfig
configs/imx6ul_geam_mmc_defconfig
configs/imx6ul_geam_nand_defconfig
configs/imx6ul_isiot_emmc_defconfig
configs/imx6ul_isiot_mmc_defconfig
configs/imx6ul_isiot_nand_defconfig
include/configs/imx6qdl_icore.h
include/configs/imx6qdl_icore_rqs.h
include/configs/imx6ul_geam.h
include/configs/imx6ul_isiot.h

index 3593719d8fd098ff7e2e58e224a44ed75dcd007b..eb0e533dfeea8f50a11872c11b480618192e5417 100644 (file)
@@ -141,6 +141,9 @@ int board_late_init(void)
                break;
        }
 
+       if (is_mx6ul())
+               setenv("fdt_file", "imx6ul-geam-kit.dtb");
+
        return 0;
 }
 
index 55fc77fe04bc52dfbf32c3907b14b73da26fdcc9..0687329165d5268a3998a8d9233d541034800a27 100644 (file)
@@ -243,6 +243,11 @@ int board_late_init(void)
                break;
        }
 
+       if (is_mx6dq())
+               setenv("fdt_file", "imx6q-icore.dtb");
+       else if(is_mx6dl() || is_mx6solo())
+               setenv("fdt_file", "imx6dl-icore.dtb");
+
        return 0;
 }
 
index 01380f1269796fd876b5bf392742e25b6be86b93..e95c165d411ad07aa378cc91073c1dbb88e77849 100644 (file)
@@ -88,6 +88,11 @@ int board_late_init(void)
                break;
        }
 
+       if (is_mx6dq())
+               setenv("fdt_file", "imx6q-icore-rqs.dtb");
+       else if(is_mx6dl() || is_mx6solo())
+               setenv("fdt_file", "imx6dl-icore-rqs.dtb");
+
        return 0;
 }
 
index 29a137dc8153658641ba14b3525d871824c98004..5d1c693e22926459f9ff87a939e56dc07022f8b9 100644 (file)
@@ -149,6 +149,14 @@ int board_late_init(void)
                break;
        }
 
+       if (is_mx6ul()) {
+#ifdef CONFIG_ENV_IS_IN_MMC
+               setenv("fdt_file", "imx6ul-isiot-emmc.dtb");
+#else
+               setenv("fdt_file", "imx6ul-isiot-nand.dtb");
+#endif
+       }
+
        return 0;
 }
 
index 6b67156ca5515a101319a61d54581069720859f9..c0644d79d40d5a898cfa6830d1c1d652eb988863 100644 (file)
@@ -15,7 +15,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6dl-icore.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 2099370aa3f1dd4506620befffa409ee1de1c40e..20d183fb10a4e0750e3f17a9c3a8f57249fd5c98 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_NAND"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6dl-icore.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 1a7d8efcedc4f6cd7dc2ae125b964862814a93ca..18e1b9e3bf1a3b4b463c13360fc109ba7e88c613 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6dl-icore-rqs.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index adb047281117ded0d379865ac2e1fec1238ba236..48de950d71f532f4bb55dca63ccdd5bb64d13ef5 100644 (file)
@@ -15,7 +15,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6q-icore.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 45d5fcec588c30edfc3c6c34a4d7358de8a0717e..0ebb2dd07460f112c788ea5deb547c1e3f58982c 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_NAND"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6q-icore.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index aef6d364accb82fb911a62b23337bf922ae7d4ca..ecccd75358f2985429586826f8752133c7a3db75 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6q-icore-rqs.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 35610c6f823ffec4018f4b53bdcc0cf3f4bc28e5..8751a36e27312efd9a91f41d422ec9c29968f528 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6ul-geam-kit.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 7010d3d1e3a1cf3aef1fd979e287e3a809db62d3..704c0c037494a3da7fe26dd33485ed495d55dc75 100644 (file)
@@ -13,7 +13,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_NAND"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6ul-geam-kit.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 58c56f51eee7a8678f83975c201bec148cef8fac..1f501cb0210613d9d44d46d7095c63b83d386105 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6ul-isiot-emmc.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 89bd8a04a83760b044b134a3cc22eee21897d0b5..5214479dcc24ae45466df79e38e26d05efbae3d8 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_MMC"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6ul-isiot-emmc.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index f7240cc953e79b31a7f6ba7687cf797fbe0af772..1b28336f36e5533badd3bfb5d4f081fa03c0de7c 100644 (file)
@@ -13,7 +13,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,ENV_IS_IN_NAND"
 CONFIG_BOOTDELAY=3
-CONFIG_DEFAULT_FDT_FILE="imx6ul-isiot-nand.dtb"
 CONFIG_SPL=y
 CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
index 4bdba5736586dedd82d4b945384b364a6bfa9000..f783eac5dba37c0bf966ac7f20589be24d20900e 100644 (file)
@@ -42,7 +42,6 @@
        "fit_image=fit.itb\0" \
        "console=ttymxc3\0" \
        "fdt_high=0xffffffff\0" \
-       "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "fdt_addr=0x18000000\0" \
        "boot_fdt=try\0" \
        "mmcpart=1\0" \
index 3358320e66fd709a860b178556a2bbcbdd4f0908..a6394681d9923e7260c2bba1bc019ee76214b128 100644 (file)
@@ -37,7 +37,6 @@
        "fit_image=fit.itb\0" \
        "console=ttymxc3\0" \
        "fdt_high=0xffffffff\0" \
-       "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "fdt_addr=0x18000000\0" \
        "boot_fdt=try\0" \
        "mmcpart=1\0" \
index d331744b4345178d8c230a49f9b5e9238ee9d593..9f66dd324f950554d0fd30b619eea2e46ee9c647 100644 (file)
@@ -41,7 +41,6 @@
        "fit_image=fit.itb\0" \
        "console=ttymxc0\0" \
        "fdt_high=0xffffffff\0" \
-       "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "fdt_addr=0x87800000\0" \
        "boot_fdt=try\0" \
        "mmcpart=1\0" \
index 4009648628f1103b9fa0fdcf53d9fa7b56bfad71..5ce70ae4669c1a8dacea9ed9e658d16d26acddb2 100644 (file)
@@ -42,7 +42,6 @@
        "splashpos=m,m\0" \
        "console=ttymxc0\0" \
        "fdt_high=0xffffffff\0" \
-       "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "fdt_addr=0x87800000\0" \
        "boot_fdt=try\0" \
        "mmcpart=1\0" \