diff options
author | Pieter Grimmerink <p.grimmerink@inepro.com> | 2009-11-13 10:28:54 +0100 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-12-01 09:02:30 +0800 |
commit | 049ad833b1e52f6edeb675c744547167bf76ab2c (patch) | |
tree | b2daca2e01d73d93fdd60b4f6d66fa6ebfe2586e | |
parent | 448ac479768d6c242338ecf13569dc297f8908ce (diff) | |
download | kernel_goldelico_gta04-049ad833b1e52f6edeb675c744547167bf76ab2c.zip kernel_goldelico_gta04-049ad833b1e52f6edeb675c744547167bf76ab2c.tar.gz kernel_goldelico_gta04-049ad833b1e52f6edeb675c744547167bf76ab2c.tar.bz2 |
pxafb: add transparency field to pxafb_mode_info struct
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>
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxafb.h | 3 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h index f73061c..160ec83 100644 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ b/arch/arm/mach-pxa/include/mach/pxafb.h @@ -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; diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 33a6aacfc..f58a3aa 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -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); |