Commit fbd03a1c authored by Guillaume GARDET's avatar Guillaume GARDET Committed by Russell King

[ARM] 5228/1: Add the RGB555 wiring for the atmel LCD

Add the RGB555 wiring for the atmel LCD.
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarGuillaume GARDET <guillaume.gardet@free.fr>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 53d4351f
...@@ -378,6 +378,10 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var, ...@@ -378,6 +378,10 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var,
var->red.offset = 11; var->red.offset = 11;
var->blue.offset = 0; var->blue.offset = 0;
var->green.length = 6; 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 { } else {
/* BGR:555 mode */ /* BGR:555 mode */
var->red.offset = 0; var->red.offset = 0;
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
*/ */
#define ATMEL_LCDC_WIRING_BGR 0 #define ATMEL_LCDC_WIRING_BGR 0
#define ATMEL_LCDC_WIRING_RGB 1 #define ATMEL_LCDC_WIRING_RGB 1
#define ATMEL_LCDC_WIRING_RGB555 2
/* LCD Controller info data structure, stored in device platform_data */ /* LCD Controller info data structure, stored in device platform_data */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment