Skip to content

Commit

Permalink
[ARM] 5228/1: Add the RGB555 wiring for the atmel LCD
Browse files Browse the repository at this point in the history
Add the RGB555 wiring for the atmel LCD.

Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Haavard Skinnemoen <[email protected]>
Signed-off-by: Guillaume GARDET <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
ggardet authored and Russell King committed Sep 18, 2008
1 parent 53d4351 commit fbd03a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/video/atmel_lcdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fbd03a1

Please sign in to comment.