diff options
author | Tom Gundersen | 2013-09-07 16:08:35 +0200 |
---|---|---|
committer | Tomi Valkeinen | 2013-10-09 12:35:46 +0300 |
commit | 9f192a92286c41c32b0929e60ac7136baa5bd2a8 (patch) | |
tree | 037f09114b45b41f7021f2a7131a6bb4937795df | |
parent | 6c666b4188b57afb8b8c14d3bb59d02fc0485b29 (diff) |
simplefb: print some info about the registered fb
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>
-rw-r--r-- | drivers/video/simplefb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index ad46d2dd55a2..08c764cfeff3 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -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); |