diff options
author | Guillaume GARDET <guillaume.gardet@free.fr> | 2008-08-29 05:11:24 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-18 18:11:56 -0400 |
commit | fbd03a1cbc04833a952b0d603df96e4800445979 (patch) | |
tree | 7d95b7c0199e25289c957a069422917449620668 | |
parent | 53d4351f5868c7d3faa9507608c324ff7d7c186c (diff) |
[ARM] 5228/1: Add the RGB555 wiring for the atmel LCD
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>
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 4 | ||||
-rw-r--r-- | include/video/atmel_lcdc.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 5a24c6411d34..cedfd01c9833 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c | |||
@@ -378,6 +378,10 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var, | |||
378 | var->red.offset = 11; | 378 | var->red.offset = 11; |
379 | var->blue.offset = 0; | 379 | var->blue.offset = 0; |
380 | var->green.length = 6; | 380 | var->green.length = 6; |
381 | } else if (sinfo->lcd_wiring_mode == ATMEL_LCDC_WIRING_RGB555) { | ||
382 | var->red.offset = 10; | ||
383 | var->blue.offset = 0; | ||
384 | var->green.length = 5; | ||
381 | } else { | 385 | } else { |
382 | /* BGR:555 mode */ | 386 | /* BGR:555 mode */ |
383 | var->red.offset = 0; | 387 | var->red.offset = 0; |
diff --git a/include/video/atmel_lcdc.h b/include/video/atmel_lcdc.h index 920c4e9cb93d..6ad87f485992 100644 --- a/include/video/atmel_lcdc.h +++ b/include/video/atmel_lcdc.h | |||
@@ -30,6 +30,7 @@ | |||
30 | */ | 30 | */ |
31 | #define ATMEL_LCDC_WIRING_BGR 0 | 31 | #define ATMEL_LCDC_WIRING_BGR 0 |
32 | #define ATMEL_LCDC_WIRING_RGB 1 | 32 | #define ATMEL_LCDC_WIRING_RGB 1 |
33 | #define ATMEL_LCDC_WIRING_RGB555 2 | ||
33 | 34 | ||
34 | 35 | ||
35 | /* LCD Controller info data structure, stored in device platform_data */ | 36 | /* LCD Controller info data structure, stored in device platform_data */ |