linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tom Gundersen <teg@jklm.no>
To: linux-fbdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, tomi.valkeinen@ti.com,
	plagnioj@jcrosoft.com, Tom Gundersen <teg@jklm.no>,
	Stephen Warren <swarren@wwwdotorg.org>,
	David Herrmann <dh.herrmann@gmail.com>
Subject: [PATCH] simplefb: print some info about the registered fb
Date: Fri, 06 Sep 2013 11:49:13 +0000	[thread overview]
Message-ID: <1378468153-1375-1-git-send-email-teg@jklm.no> (raw)
In-Reply-To: <1378467880-1040-1-git-send-email-teg@jklm.no>

This is similar to the output printed by efifb.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
---

Hi,

Sorry for the resend, got the ml address wrong.

-t

 drivers/video/simplefb.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index 8d78106..4196686 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, mapped to 0x%p\n",
+			     info->fix.smem_start, 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);
-- 
1.8.4


       reply	other threads:[~2013-09-06 11:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1378467880-1040-1-git-send-email-teg@jklm.no>
2013-09-06 11:49 ` Tom Gundersen [this message]
2013-09-06 19:11   ` [PATCH] simplefb: print some info about the registered fb Stephen Warren
2013-09-07 11:16   ` David Herrmann
2013-09-07 11:43     ` [PATCH v2] " Tom Gundersen
2013-09-07 13:55       ` Geert Uytterhoeven
2013-09-07 14:08         ` [PATCH v3] " Tom Gundersen
2013-10-01 16:45           ` Tom Gundersen
2013-10-09  9:05           ` Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378468153-1375-1-git-send-email-teg@jklm.no \
    --to=teg@jklm.no \
    --cc=dh.herrmann@gmail.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=plagnioj@jcrosoft.com \
    --cc=swarren@wwwdotorg.org \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).