diff options
author | Tom Gundersen <teg@jklm.no> | 2013-09-07 14:08:35 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-09 09:35:46 (GMT) |
commit | 9f192a92286c41c32b0929e60ac7136baa5bd2a8 (patch) | |
tree | 037f09114b45b41f7021f2a7131a6bb4937795df /drivers/video/simplefb.c | |
parent | 6c666b4188b57afb8b8c14d3bb59d02fc0485b29 (diff) | |
download | linux-9f192a92286c41c32b0929e60ac7136baa5bd2a8.tar.xz |
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>
Diffstat (limited to 'drivers/video/simplefb.c')
-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 ad46d2d..08c764c 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); |