diff options
| author | Harald Seiler <[email protected]> | 2023-09-27 14:46:25 +0200 |
|---|---|---|
| committer | Patrice Chotard <[email protected]> | 2023-10-04 13:26:03 +0200 |
| commit | 07cdd22c38608e2f57d4612f20c8990ecf6c889b (patch) | |
| tree | 227bd71e820416a389db6e87efb2cdc1340f7bed | |
| parent | 719a8759cde676119645ce16c858301cee4649cd (diff) | |
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.
Signed-off-by: Harald Seiler <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
| -rw-r--r-- | board/dhelectronics/dh_stm32mp1/board.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c index f9cfabe2420..b933761d0de 100644 --- a/board/dhelectronics/dh_stm32mp1/board.c +++ b/board/dhelectronics/dh_stm32mp1/board.c @@ -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, |
