public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: Parse ATAG_VIDEOLFB to screen_info
@ 2008-11-21 10:25 Tomi Valkeinen
  2008-11-24 12:12 ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Tomi Valkeinen @ 2008-11-21 10:25 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-omap, Tomi Valkeinen

Parse ATAG_VIDEOLFB received from bootloader to screen_info struct, so that video
drivers can use the information.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
---
 arch/arm/kernel/setup.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 1f1eecc..11dafe5 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -576,6 +576,31 @@ static int __init parse_tag_videotext(const struct tag *tag)
 }
 
 __tagtable(ATAG_VIDEOTEXT, parse_tag_videotext);
+
+static int __init parse_tag_videolfb(const struct tag *tag)
+{
+	screen_info.lfb_width = tag->u.videolfb.lfb_width;
+	screen_info.lfb_height = tag->u.videolfb.lfb_height;
+	screen_info.lfb_depth = tag->u.videolfb.lfb_depth;
+	screen_info.lfb_linelength = tag->u.videolfb.lfb_linelength;
+	screen_info.lfb_base = tag->u.videolfb.lfb_base;
+	screen_info.lfb_size = tag->u.videolfb.lfb_size;
+
+	screen_info.red_size = tag->u.videolfb.red_size;
+	screen_info.red_pos = tag->u.videolfb.red_pos;
+	screen_info.green_size = tag->u.videolfb.green_size;
+	screen_info.green_pos = tag->u.videolfb.green_pos;
+	screen_info.blue_size = tag->u.videolfb.blue_size;
+	screen_info.blue_pos = tag->u.videolfb.blue_pos;
+	screen_info.rsvd_size = tag->u.videolfb.rsvd_size;
+	screen_info.rsvd_pos = tag->u.videolfb.rsvd_pos;
+
+	screen_info.orig_video_isVGA = VIDEO_TYPE_VLFB;
+
+	return 0;
+}
+
+__tagtable(ATAG_VIDEOLFB, parse_tag_videolfb);
 #endif
 
 static int __init parse_tag_ramdisk(const struct tag *tag)
-- 
1.6.0.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-25 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 10:25 [PATCH] ARM: Parse ATAG_VIDEOLFB to screen_info Tomi Valkeinen
2008-11-24 12:12 ` Russell King - ARM Linux
2008-11-25  8:17   ` Tomi Valkeinen
2008-11-25 22:08     ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox