]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: am65x_evm: Add support for DFU related configs
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 3 Aug 2020 06:05:13 +0000 (11:35 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:46 +0000 (20:34 +0530)
Add offset and environment related configs used for booting
from DFU.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
include/configs/am65x_evm.h

index 4de0dacee3c3a710deef9d8816dc0fa3c5d9c505..9b19d7c31948a3ec346014a5f28b1d74fee597d7 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef CONFIG_TARGET_AM654_A53_EVM
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SPL_TEXT_BASE +        \
                                         CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE)
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE   0x20000
 #else
 /*
  * Maximum size in memory allocated to the SPL BSS. Keep it as tight as
@@ -44,6 +45,7 @@
 /* Configure R5 SPL post-relocation malloc pool in DDR */
 #define CONFIG_SYS_SPL_MALLOC_START    0x84000000
 #define CONFIG_SYS_SPL_MALLOC_SIZE     SZ_16M
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE   0x5000
 #endif
 
 #ifdef CONFIG_SYS_K3_SPL_ATF
                "rootfstype=ubifs root=ubi0:rootfs rw ubi.mtd=ospi.rootfs\0"
 
 #define EXTRA_ENV_DFUARGS                                              \
-       "dfu_bufsiz=0x20000\0"                                          \
        DFU_ALT_INFO_MMC                                                \
+       DFU_ALT_INFO_RAM                                                \
        DFU_ALT_INFO_EMMC                                               \
        DFU_ALT_INFO_OSPI