Skip to contentSkip to conversation

board: dh_stm32mp1: Only print board code with CONFIG_SPL_DISPLAY_PRINT

PATCH In review Harald Seiler 3 participants 6 messages Sep 27, 2023 – Oct 4, 2023 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 board: dh_stm32mp1: Only print board code with CONFIG_SPL_DISPLAY_PRINT

Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

---
 board/dhelectronics/dh_stm32mp1/board.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
board/dhelectronics/dh_stm32mp1/board.c +3 -2
index f9cfabe2420..b933761d0de 100644
@@ -229,8 +229,9 @@ static void board_get_coding_straps(void)
 
 	gpio_free_list_nodev(gpio, ret);
 
-	printf("Code:  SoM:rev=%d,ddr3=%d Board:rev=%d\n",
-		somcode, ddr3code, brdcode);
+	if (CONFIG_IS_ENABLED(DISPLAY_PRINT))
+		printf("Code:  SoM:rev=%d,ddr3=%d Board:rev=%d\n",
+		       somcode, ddr3code, brdcode);
 }
 
 int board_stm32mp1_ddr_config_name_match(struct udevice *dev,
Signature · 1 line
2.41.0
#3 lore raw
Quoted 7 lines · Patrice CHOTARD
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Harald Seiler

Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Apply on stm32/next

This all should be on master, since we're way before 2024.01-rc1 now , 2023.10 was just released on Monday.

#4 lore raw
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Patrice CHOTARD
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Harald Seiler

Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Apply on stm32/next

This all should be on master, since we're way before 2024.01-rc1 now , 2023.10 was just released on Monday.

Hi Marek

Yes it was my intention, thanks for checking ;-)

Patrice

#5 lore raw
Quoted 16 lines · Patrice CHOTARD
Quoted 13 lines · Marek Vasut
Quoted 12 lines · Patrice CHOTARD
Quoted 7 lines · Marek Vasut
Quoted 4 lines · Harald Seiler

Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Apply on stm32/next

This all should be on master, since we're way before 2024.01-rc1 now , 2023.10 was just released on Monday.

Hi Marek

Yes it was my intention, thanks for checking ;-)

You're welcome.