simplefb: print some info about the registered fb
authorTom Gundersen <teg@jklm.no>
Sat, 7 Sep 2013 14:08:35 +0000 (16:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 Oct 2013 09:35:46 +0000 (12:35 +0300)
This is similar to the output printed by efifb.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/simplefb.c

index ad46d2dd55a2d248d46fea9402912955d01fa1f4..08c764cfeff3564c602bd0e61592317af6d42f65 100644 (file)
@@ -220,6 +220,14 @@ static int simplefb_probe(struct platform_device *pdev)
        }
        info->pseudo_palette = (void *)(info + 1);
 
+       dev_info(&pdev->dev, "framebuffer at 0x%lx, 0x%x bytes, mapped to 0x%p\n",
+                            info->fix.smem_start, info->fix.smem_len,
+                            info->screen_base);
+       dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n",
+                            params.format->name,
+                            info->var.xres, info->var.yres,
+                            info->var.bits_per_pixel, info->fix.line_length);
+
        ret = register_framebuffer(info);
        if (ret < 0) {
                dev_err(&pdev->dev, "Unable to register simplefb: %d\n", ret);