Skip to contentSkip to conversation

pxafb: added transparency field to pxafb_mode_info struct

PATCH New pieterg 1 participant 1 message Nov 13, 2009

Subsystems (4)
lore
Share & tools
lore

pieterg

author
#0 lore raw

PATCH 1/1 pxafb: added transparency field to pxafb_mode_info struct

Quoted 1 line

From fe21c5a79464e0631ea8cf52db521dece06c5a1f Mon Sep 17 00:00:00 2001

From: pieterg <[email protected]>
Date: Wed, 4 Nov 2009 10:55:18 +0100
Subject: [PATCH] pxafb: added transparency field to pxafb_mode_info struct

This allows to select either RGB565 (transparency 0) or RGBT555 (transparency 1) from the mode info

---
 arch/arm/mach-pxa/include/mach/pxafb.h |    3 ++-
 drivers/video/pxafb.c                  |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-pxa/include/mach/pxafb.h +2 -1
index f73061c..160ec83 100644
@@ -76,7 +76,8 @@ struct pxafb_mode_info {
 	u_char		bpp;
 	u_int		cmap_greyscale:1,
 			depth:8,
-			unused:23;
+			transparency:1,
+			unused:22;
 
 	/* Parallel Mode Timing */
 	u_char		hsync_len;
drivers/video/pxafb.c +1 -0
index 1820c4a..91b19e3 100644
@@ -397,6 +397,7 @@ static void pxafb_setmode(struct fb_var_screeninfo *var,
 	var->lower_margin	= mode->lower_margin;
 	var->sync		= mode->sync;
 	var->grayscale		= mode->cmap_greyscale;
+	var->transp.length	= mode->transparency;
 
 	/* set the initial RGBA bitfields */
 	pxafb_set_pixfmt(var, mode->depth);
Signature · 1 line
1.6.5.rc1.44.ga1675