From: Darren Etheridge Date: Mon, 5 Aug 2013 22:02:31 +0000 (-0500) Subject: video: da8xx-fb: fix 24bpp raster configuration X-Git-Tag: next-20130912~161^2~13^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fa8a00cc732fbd890bb4ac5af237ac6774c9545b;p=karo-tx-linux.git video: da8xx-fb: fix 24bpp raster configuration Based on original patch by: Manjunathappa, Prakash and Afzal Mohammed 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 Signed-off-by: Tomi Valkeinen --- 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, break; case 24: reg |= LCD_V2_TFT_24BPP_MODE; + break; case 32: + reg |= LCD_V2_TFT_24BPP_MODE; reg |= LCD_V2_TFT_24BPP_UNPACK; break; - case 8: par->palette_sz = 256 * 2; break;