Skip to contentSkip to conversation

xilinx: zynqmp: fix ZYNQMP_RESTORE_JTAG check

PATCH Applied Ricardo Salveti 3 participants 3 messages Nov 4, 2021 – Nov 15, 2021 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xilinx: zynqmp: fix ZYNQMP_RESTORE_JTAG check

Config check should be done without the SPL_ prefix.

---
 board/xilinx/zynqmp/zynqmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/xilinx/zynqmp/zynqmp.c +1 -1
index dfb5dab7afa..2b5239ccb47 100644
@@ -394,7 +394,7 @@ int board_init(void)
 	printf("Silicon version:\t%d\n", zynqmp_get_silicon_version());
 
 	/* the CSU disables the JTAG interface when secure boot is enabled */
-	if (CONFIG_IS_ENABLED(SPL_ZYNQMP_RESTORE_JTAG))
+	if (CONFIG_IS_ENABLED(ZYNQMP_RESTORE_JTAG))
 		restore_jtag();
 #else
 	if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Ricardo Salveti

Config check should be done without the SPL_ prefix.

Quoted 20 lines
---
 board/xilinx/zynqmp/zynqmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/xilinx/zynqmp/zynqmp.c +1 -2
index dfb5dab7afa..2b5239ccb47 100644
@@ -394,7 +394,7 @@ int board_init(void)
        printf("Silicon version:\t%d\n", zynqmp_get_silicon_version());
 
        /* the CSU disables the JTAG interface when secure boot is enabled */
-       if (CONFIG_IS_ENABLED(SPL_ZYNQMP_RESTORE_JTAG))
+       if (CONFIG_IS_ENABLED(ZYNQMP_RESTORE_JTAG))
                restore_jtag();
 #else
        if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))
--

2.33.0

Signature · 7 lines
Best regards,

Oleksandr Suvorov
Software Engineer
T: +380 63 8489656
E: [email protected]
W: www.foundries.io
Applied
#2 lore raw
In reply to Ricardo Salveti
Quoted 13 lines · Ricardo Salveti

Config check should be done without the SPL_ prefix.

---
  board/xilinx/zynqmp/zynqmp.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
board/xilinx/zynqmp/zynqmp.c +0 -0
index dfb5dab7afa..2b5239ccb47 100644

board/xilinx/zynqmp/zynqmp.c int board_init(void) · line 400

Quoted 8 lines
board/xilinx/zynqmp/zynqmp.c +1 -1
@@ -394,7 +394,7 @@ int board_init(void)
  	printf("Silicon version:\t%d\n", zynqmp_get_silicon_version());
 
  	/* the CSU disables the JTAG interface when secure boot is enabled */
-	if (CONFIG_IS_ENABLED(SPL_ZYNQMP_RESTORE_JTAG))
+	if (CONFIG_IS_ENABLED(ZYNQMP_RESTORE_JTAG))
  		restore_jtag();
  #else
  	if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))

applied.
M