diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-02-05 08:35:11 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-03-13 05:54:58 -0400 |
commit | a79eac7165ed62114e6ca197195aa5060a54f137 (patch) | |
tree | 314301a4d238668ccd3713dcc9b06b81d3afa0f6 /include | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) |
atmel_lcdfb: fix 16-bpp modes on older SOCs
Fix regression introduced by commit 787f9fd23283 ("atmel_lcdfb: support
16bit BGR:565 mode, remove unsupported 15bit modes") which broke 16-bpp
modes for older SOCs which use IBGR:555 (msb is intensity) rather
than BGR:565.
Use SOC-type to determine the pixel layout.
Tested on at91sam9263 and at91sam9g45.
Cc: <stable@vger.kernel.org>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/video/atmel_lcdc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/atmel_lcdc.h b/include/video/atmel_lcdc.h index 28447f1594fa..5f0e234026c0 100644 --- a/include/video/atmel_lcdc.h +++ b/include/video/atmel_lcdc.h | |||
@@ -62,6 +62,7 @@ struct atmel_lcdfb_info { | |||
62 | void (*atmel_lcdfb_power_control)(int on); | 62 | void (*atmel_lcdfb_power_control)(int on); |
63 | struct fb_monspecs *default_monspecs; | 63 | struct fb_monspecs *default_monspecs; |
64 | u32 pseudo_palette[16]; | 64 | u32 pseudo_palette[16]; |
65 | bool have_intensity_bit; | ||
65 | }; | 66 | }; |
66 | 67 | ||
67 | #define ATMEL_LCDC_DMABADDR1 0x00 | 68 | #define ATMEL_LCDC_DMABADDR1 0x00 |