From f4b3c1cc33730a4e9ecccab275a513ec8e08a073 Mon Sep 17 00:00:00 2001 From: Vignesh Raghavendra Date: Mon, 18 Nov 2019 19:16:34 +0530 Subject: environment: ti: Add DFU environment variables k3_dfu.h Setup env variables for updating firmwares on eMMC/OSPI/MMC via DFU Signed-off-by: Vignesh Raghavendra Signed-off-by: Lokesh Vutla --- include/configs/j721e_evm.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/configs/j721e_evm.h') diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 84518786c7..71cea3dd8a 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -14,6 +14,7 @@ #include #include #include +#include /* DDR Configuration */ #define CONFIG_SYS_SDRAM_BASE1 0x880000000 @@ -100,12 +101,21 @@ "7 /lib/firmware/j7-c66_1-fw " \ "8 /lib/firmware/j7-c71_0-fw " +/* set default dfu_bufsiz to 128KB (sector size of OSPI) */ +#define EXTRA_ENV_DFUARGS \ + "dfu_bufsiz=0x20000\0" \ + DFU_ALT_INFO_MMC \ + DFU_ALT_INFO_EMMC \ + DFU_ALT_INFO_RAM \ + DFU_ALT_INFO_OSPI + /* Incorporate settings into the U-Boot environment */ #define CONFIG_EXTRA_ENV_SETTINGS \ DEFAULT_MMC_TI_ARGS \ EXTRA_ENV_J721E_BOARD_SETTINGS \ EXTRA_ENV_J721E_BOARD_SETTINGS_MMC \ EXTRA_ENV_RPROC_SETTINGS \ + EXTRA_ENV_DFUARGS \ DEFAULT_UFS_TI_ARGS /* Now for the remaining common defines */ -- cgit