Skip to contentSkip to conversation

configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU

PATCH In review Bin Liu 3 participants 3 messages Feb 8, 2019 – Feb 22, 2019

lore
Share & tools
lore

Bin Liu

author
#0 lore raw

PATCH 1/1 configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU

Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform.

---
 include/configs/am57xx_evm.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
include/configs/am57xx_evm.h +11 -0
index d61fdf9f7a36..70aa4250605b 100644
@@ -35,11 +35,22 @@
 
 #define CONFIG_SYS_OMAP_ABE_SYSCK
 
+#ifdef CONFIG_SPL_DFU
+#ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
 	DFU_ALT_INFO_MMC \
 	DFU_ALT_INFO_EMMC \
 	DFU_ALT_INFO_RAM \
+	DFU_ALT_INFO_QSPI
+#else
+#undef CONFIG_CMD_BOOTD
+#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
+#define DFUARGS \
+	"dfu_bufsiz=0x10000\0" \
+	DFU_ALT_INFO_RAM
+#endif
+#endif
 
 #include <configs/ti_omap5_common.h>
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 3 lines · Bin Liu

Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190219/7c1b46ca/attachment.sig>
#2 lore raw

PATCH 1/1 configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU

In reply to Bin Liu

Hi Bin,

Quoted 4 lines · Bin Liu

Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform.

---

With this patch DFU args are no longer available at U-Boot prompt

include/configs/am57xx_evm.h line 38

Quoted 12 lines
 include/configs/am57xx_evm.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
include/configs/am57xx_evm.h +1 -0
index d61fdf9f7a36..70aa4250605b 100644
@@ -35,11 +35,22 @@
 
 #define CONFIG_SYS_OMAP_ABE_SYSCK
 
+#ifdef CONFIG_SPL_DFU

This should be CONFIG_IS_ENABLED(DFU) so that DFUARGS defined when CONFIG_DFU=y in U-Boot.

Quoted 19 lines
include/configs/am57xx_evm.h +10 -0
+#ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
 	DFU_ALT_INFO_MMC \
 	DFU_ALT_INFO_EMMC \
 	DFU_ALT_INFO_RAM \
+	DFU_ALT_INFO_QSPI
+#else
+#undef CONFIG_CMD_BOOTD
+#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
+#define DFUARGS \
+	"dfu_bufsiz=0x10000\0" \
+	DFU_ALT_INFO_RAM
+#endif
+#endif
 
 #include <configs/ti_omap5_common.h>
 
Signature · 2 lines
Regards
Vignesh