Skip to contentSkip to conversation

arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

PATCH New Simon Goldschmidt 2 participants 2 messages Jul 10, 2019 – Jul 12, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

This fixes 3 boards that don't use CONFIG_EXTRA_ENV_SETTINGS from socfpga_common.h. They need to enable reset manager compatibility mode unless all peripheral drivers in Linux support reset handling.

Fixes commit 4b2e32efa4e7 ("arm: socfpga: gen5: deassert peripheral reset by default")

---

Changes in v2:
- drop trailing backslash in socfpga_vining_fpga.h

 include/configs/socfpga_dbm_soc1.h        | 3 ++-
 include/configs/socfpga_stratix10_socdk.h | 3 ++-
 include/configs/socfpga_vining_fpga.h     | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)
include/configs/socfpga_dbm_soc1.h +2 -1
index b36d7e56fb..fc1db2442e 100644
@@ -87,7 +87,8 @@
 			"echo Running bootscript... ; "			\
 			"source ${kernel_addr_r} ; "			\
 		"fi ; "							\
-		"fi\0"
+		"fi\0"							\
+	"socfpga_legacy_reset_compat=1\0"
 
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>
include/configs/socfpga_stratix10_socdk.h +2 -1
index 8d2971c6e2..90ad8172e2 100644
@@ -113,7 +113,8 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 	"scriptaddr=0x02100000\0" \
 	"scriptfile=u-boot.scr\0" \
 	"fatscript=if fatload mmc 0:1 ${scriptaddr} ${scriptfile};" \
-		   "then source ${scriptaddr}; fi\0"
+		   "then source ${scriptaddr}; fi\0" \
+	"socfpga_legacy_reset_compat=1\0"
 
 /*
  * Generic Interrupt Controller Definitions
include/configs/socfpga_vining_fpga.h +1 -0
index 29a92b9146..5416c4b170 100644
@@ -145,6 +145,7 @@
 			"run ubi_ubi ; "				\
 		"else echo \"Unsupported boot mode: \"${bootmode} ; "	\
 		"fi\0"							\
+		"socfpga_legacy_reset_compat=1\0"
 
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 #define CONFIG_ENV_SIZE_REDUND		CONFIG_ENV_SIZE
Signature · 1 line
2.20.1
Applied
#1 lore raw

PATCH v2 1/1 arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

Quoted 7 lines · Simon Goldschmidt

This fixes 3 boards that don't use CONFIG_EXTRA_ENV_SETTINGS from socfpga_common.h. They need to enable reset manager compatibility mode unless all peripheral drivers in Linux support reset handling.

Fixes commit 4b2e32efa4e7 ("arm: socfpga: gen5: deassert peripheral reset by default")

Applied, thanks.