Skip to content

Commit

Permalink
pxafb: add transparency field to pxafb_mode_info struct
Browse files Browse the repository at this point in the history
This allows to select either RGB565 (transparency 0) or RGBT555
(transparency 1) from the mode info

Signed-off-by: Pieter Grimmerink <p.grimmerink@inepro.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Pieter Grimmerink authored and Eric Miao committed Dec 1, 2009
1 parent 448ac47 commit 049ad83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/mach-pxa/include/mach/pxafb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,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);
Expand Down

0 comments on commit 049ad83

Please sign in to comment.