[PATCH] board: gateworks: venice: display dram speed

2023-07-11 Thread sbabic
> Display dram speed during configuration.
> Signed-off-by: Tim Harvey 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


[PATCH] board: gateworks: venice: display dram speed

2023-06-09 Thread Tim Harvey
Display dram speed during configuration.

Signed-off-by: Tim Harvey 
---
 board/gateworks/venice/spl.c | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index 50056da3ee0f..c81498e830d6 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -83,9 +83,12 @@ static void spl_dram_init(int size)
 
printf("DRAM: LPDDR4 ");
if (size > 512)
-   printf("%d GiB\n", size / 1024);
+   printf("%d GiB", size / 1024);
else
-   printf("%d MiB\n", size);
+   printf("%d MiB", size);
+   printf(" %dMT/s %dMHz\n",
+  dram_timing->fsp_msg[0].drate,
+  dram_timing->fsp_msg[0].drate / 2);
ddr_init(dram_timing);
 }
 
-- 
2.25.1