summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Etheridge <detheridge@ti.com>2013-08-05 18:02:31 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-09 07:02:42 -0400
commitfa8a00cc732fbd890bb4ac5af237ac6774c9545b (patch)
tree741083ba50001bb6533b4b24a09df9ab0c5d4024
parent26e7164537380479bf96e852df6ab42ebe50e836 (diff)
video: da8xx-fb: fix 24bpp raster configuration
Based on original patch by: Manjunathappa, Prakash <prakash.pm@ti.com> and Afzal Mohammed <afzal@ti.com> Set only LCD_V2_TFT_24BPP_MODE bit for 24bpp and LCD_V2_TFT_24BPP_UNPACK bit along with LCD_V2_TFT_24BPP_MODE for 32bpp configuration. Patch is tested on am335x-evm for 24bpp and da850-evm for 16bpp configurations. v2: removes confusing fall through in case statement for pixel depth configuration. Signed-off-by: Darren Etheridge <detheridge@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/da8xx-fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 93753828eb08..893aefe25478 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -554,10 +554,11 @@ static int lcd_cfg_frame_buffer(struct da8xx_fb_par *par, u32 width, u32 height,
554 break; 554 break;
555 case 24: 555 case 24:
556 reg |= LCD_V2_TFT_24BPP_MODE; 556 reg |= LCD_V2_TFT_24BPP_MODE;
557 break;
557 case 32: 558 case 32:
559 reg |= LCD_V2_TFT_24BPP_MODE;
558 reg |= LCD_V2_TFT_24BPP_UNPACK; 560 reg |= LCD_V2_TFT_24BPP_UNPACK;
559 break; 561 break;
560
561 case 8: 562 case 8:
562 par->palette_sz = 256 * 2; 563 par->palette_sz = 256 * 2;
563 break; 564 break;