diff options
author | Harald Seiler <hws@denx.de> | 2023-09-27 14:44:40 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2023-10-04 13:26:03 +0200 |
commit | 719a8759cde676119645ce16c858301cee4649cd (patch) | |
tree | c087a45e7e635b387c5aad7e64035af3338129f5 | |
parent | 1937fdbd472513aa5337033451e2312f4c464108 (diff) | |
download | u-boot-719a8759cde676119645ce16c858301cee4649cd.zip u-boot-719a8759cde676119645ce16c858301cee4649cd.tar.gz u-boot-719a8759cde676119645ce16c858301cee4649cd.tar.bz2 |
ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINT
Ensure that the RAM configuration line is only printed when
CONFIG_SPL_DISPLAY_PRINT is set.
Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
-rw-r--r-- | drivers/ram/stm32mp1/stm32mp1_ram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c index a6c19af..2808d07 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ram.c +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c @@ -126,7 +126,8 @@ static int stm32mp1_ddr_setup(struct udevice *dev) dev_dbg(dev, "no st,mem-name\n"); return -EINVAL; } - printf("RAM: %s\n", config.info.name); + if (CONFIG_IS_ENABLED(DISPLAY_PRINT)) + printf("RAM: %s\n", config.info.name); for (idx = 0; idx < ARRAY_SIZE(param); idx++) { ret = ofnode_read_u32_array(node, param[idx].name, |