aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/atmel_lcdfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/atmel_lcdfb.c')
-rw-r--r--drivers/video/atmel_lcdfb.c4
1 files changed, 4 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;