Skip to contentSkip to conversation

arm: am57xx: env: Fix DFU variables

PATCH New Sam Protsenko 1 participant 1 message Jan 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: am57xx: env: Fix DFU variables

Commit 8502fe84a4fc ("configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU") implements incorrect ifdef logic, which leads to DFU variables absence in non-SPL environment. Fix that in order to bring back DFU variables, by reflecting the logic in include/configs/dra7xx_evm.h.

Fixes 8502fe84a4fc ("configs: am57xx_evm: define CONFIG_SPL_LOAD_F...")
---
 include/configs/am57xx_evm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/am57xx_evm.h +1 -1
index cdab9246f2..2e7d699709 100644
@@ -33,7 +33,6 @@
 
 #define CONFIG_SYS_OMAP_ABE_SYSCK
 
-#ifdef CONFIG_SPL_DFU
 #ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
@@ -43,6 +42,7 @@
 	DFU_ALT_INFO_QSPI
 #else
 #undef CONFIG_CMD_BOOTD
+#ifdef CONFIG_SPL_DFU
 #define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
Signature · 1 line
2.24.0