From: Emanuele Ghidoli Date: Mon, 3 Apr 2023 12:01:57 +0000 (+0200) Subject: board: verdin-imx8mp: change prints in spl_dram_init function X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~209^2~4 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=83edc251b1b4aa1a49b7bb8e7c20168482927261;p=uboot.git board: verdin-imx8mp: change prints in spl_dram_init function change prints to show which DDR configuration (single/dual rank) is used Signed-off-by: Emanuele Ghidoli Signed-off-by: Marcel Ziswiler --- diff --git a/board/toradex/verdin-imx8mp/spl.c b/board/toradex/verdin-imx8mp/spl.c index ab5bcbc092..73729a42b4 100644 --- a/board/toradex/verdin-imx8mp/spl.c +++ b/board/toradex/verdin-imx8mp/spl.c @@ -35,11 +35,17 @@ void spl_dram_init(void) /* * Try configuring for dual rank memory falling back to single rank */ - if (ddr_init(&dram_timing)) { - printf("Dual rank failed, attempting single rank configuration.\n"); - lpddr4_single_rank_training_patch(); - ddr_init(&dram_timing); + if (!ddr_init(&dram_timing)) { + puts("DDR configured as dual rank\n"); + return; } + + lpddr4_single_rank_training_patch(); + if (!ddr_init(&dram_timing)) { + puts("DDR configured as single rank\n"); + return; + } + puts("DDR configuration failed\n"); } void spl_board_init(void)