MLK-22997: add nandfit_part env for uuu
authorHan Xu <han.xu@nxp.com>
Tue, 19 Nov 2019 02:50:13 +0000 (20:50 -0600)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:35 +0000 (00:56 -0700)
Add the nandfit_part environment to notify uuu to burn flash.bin to
nandfit partition for iMX8QM/QX/MQ/MM platforms

Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 79474268a4d7ec473435181b85176b266549f278)
Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8a5d712cb9ba6cf99c5b5a7da3b82b16ac101ccc)

include/configs/imx_env.h

index 234af33..075157e 100644 (file)
     #define FASTBOOT_CMD "echo \"Run fastboot ...\"; fastboot 0; "
 #endif
 
+/* define the nandfit partiton environment for uuu */
+#if defined(CONFIG_IMX8MM) || defined(CONFIG_IMX8MQ) || \
+       defined(CONFIG_IMX8QM) || defined(CONFIG_IMX8QXP)
+#define MFG_NAND_FIT_PARTITION "nandfit_part=yes\0"
+#else
+#define MFG_NAND_FIT_PARTITION ""
+#endif
+
 #define CONFIG_MFG_ENV_SETTINGS_DEFAULT \
        "mfgtool_args=setenv bootargs console=${console},${baudrate} " \
                "rdinit=/linuxrc " \
@@ -34,5 +42,6 @@
         "else " \
                FASTBOOT_CMD  \
         "fi;\0" \
+       MFG_NAND_FIT_PARTITION \
 
 #endif