]> git.baikalelectronics.ru Git - uboot.git/commitdiff
bbinfo: Show the size of the copy framebuffer
authorSimon Glass <sjg@chromium.org>
Fri, 10 Mar 2023 20:47:18 +0000 (12:47 -0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:53:01 +0000 (13:53 +0100)
If the copy framebuffer is enabled, show its size.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/bdinfo.c

index 8ae7fb35fe9a630678126eee734b7777afb59950..f709904c51678a62b48051251cc93420916f0e4d 100644 (file)
@@ -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);
                }