[PATCH 1/1] board_f.c: print DRAM clock speed

Bobby The Builder bob at najdan.com
Mon Feb 22 23:17:31 CET 2021


Output the DRAM clock speed

Signed-off-by: Bobby The Builder <bob at najdan.com>

---
  common/board_f.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index 9f441c44f1..e52d0439cc 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -226,11 +226,12 @@ static int show_dram_config(void)
          print_size(gd->bd->bi_dram[i].size, "\n");
  #endif
      }
-    debug("\nDRAM:  ");
+    debug("\nDRAM Size:  ");

      print_size(size, "");
      board_add_ram_info(0);
      putc('\n');
+    printf("DRAM Clock: %d MHz\n", CONFIG_DRAM_CLK);

      return 0;
  }
-- 
2.29.2



More information about the U-Boot mailing list