]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board: verdin-imx8mp: change prints in spl_dram_init function
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Mon, 3 Apr 2023 12:01:57 +0000 (14:01 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Apr 2023 07:35:39 +0000 (09:35 +0200)
change prints to show which DDR configuration (single/dual rank) is used

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/verdin-imx8mp/spl.c

index ab5bcbc0929d5bd164664dfea33802a885c6cb80..73729a42b458bab93522d8d98211aa71b88237df 100644 (file)
@@ -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)