From: Simon Glass Date: Fri, 10 Mar 2023 20:47:18 +0000 (-0800) Subject: bbinfo: Show the size of the copy framebuffer X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=38191594df6bf3f68081626b9069b6e35b691085;p=u-boot.git bbinfo: Show the size of the copy framebuffer If the copy framebuffer is enabled, show its size. Signed-off-by: Simon Glass --- diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 8ae7fb35fe..f709904c51 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -88,11 +88,15 @@ static void show_video_info(void) device_active(dev) ? "" : "in"); if (device_active(dev)) { struct video_priv *upriv = dev_get_uclass_priv(dev); + struct video_uc_plat *plat = dev_get_uclass_plat(dev); bdinfo_print_num_ll("FB base", (ulong)upriv->fb); - if (upriv->copy_fb) + if (upriv->copy_fb) { bdinfo_print_num_ll("FB copy", (ulong)upriv->copy_fb); + bdinfo_print_num_l(" copy size", + plat->copy_size); + } printf("%-12s= %dx%dx%d\n", "FB size", upriv->xsize, upriv->ysize, 1 << upriv->bpix); }