[ARM] 5228/1: Add the RGB555 wiring for the atmel LCD
authorGuillaume GARDET <guillaume.gardet@free.fr>
Fri, 29 Aug 2008 09:11:24 +0000 (10:11 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Sep 2008 22:11:56 +0000 (23:11 +0100)
Add the RGB555 wiring for the atmel LCD.

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/video/atmel_lcdfb.c
include/video/atmel_lcdc.h

index 5a24c6411d3486baee17ed6d79d1bfdb4764a2aa..cedfd01c9833ebb2eec39cf7baf46c9d85e6a37b 100644 (file)
@@ -378,6 +378,10 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var,
                        var->red.offset = 11;
                        var->blue.offset = 0;
                        var->green.length = 6;
+               } else if (sinfo->lcd_wiring_mode == ATMEL_LCDC_WIRING_RGB555) {
+                       var->red.offset = 10;
+                       var->blue.offset = 0;
+                       var->green.length = 5;
                } else {
                        /* BGR:555 mode */
                        var->red.offset = 0;
index 920c4e9cb93dce0fb9929603121b4079ffc8ffeb..6ad87f48599284c809371c533f287b748268097f 100644 (file)
@@ -30,6 +30,7 @@
  */
 #define ATMEL_LCDC_WIRING_BGR  0
 #define ATMEL_LCDC_WIRING_RGB  1
+#define ATMEL_LCDC_WIRING_RGB555       2
 
 
  /* LCD Controller info data structure, stored in device platform_data */