]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: am65x_evm: Add DFU related env variables
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 05:07:34 +0000 (10:37 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:29 +0000 (10:10 +0530)
Add env variables that set up dfu_alt_info for MMC/EMMC/OSPI. This
is required to allow update of firmware on these media.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
include/configs/am65x_evm.h

index 06be7cc8a4690b9d9aee4e0d7b97ac6516e6af58..9a120cad89e332d41615b3a3a46380d3b430d7e6 100644 (file)
@@ -13,6 +13,7 @@
 #include <config_distro_bootcmd.h>
 #include <environment/ti/mmc.h>
 #include <environment/ti/k3_rproc.h>
+#include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
 #define CONFIG_SYS_SDRAM_BASE1         0x880000000
                "0 /lib/firmware/am65x-mcu-r5f0_0-fw "                  \
                "1 /lib/firmware/am65x-mcu-r5f0_1-fw "
 
+#define EXTRA_ENV_DFUARGS                                              \
+       "dfu_bufsiz=0x20000\0"                                          \
+       DFU_ALT_INFO_MMC                                                \
+       DFU_ALT_INFO_EMMC                                               \
+       DFU_ALT_INFO_OSPI
+
 /* Incorporate settings into the U-Boot environment */
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        DEFAULT_MMC_TI_ARGS                                             \
        DEFAULT_FIT_TI_ARGS                                             \
        EXTRA_ENV_AM65X_BOARD_SETTINGS                                  \
        EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC                              \
-       EXTRA_ENV_RPROC_SETTINGS
+       EXTRA_ENV_RPROC_SETTINGS                                        \
+       EXTRA_ENV_DFUARGS
 
 /* MMC ENV related defines */
 #ifdef CONFIG_ENV_IS_IN_MMC