lcd: atmel: Add 32bpp support for HLCDC
authorMarek Vasut <marex@denx.de>
Fri, 23 Oct 2015 20:55:40 +0000 (22:55 +0200)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 1 Nov 2015 21:02:16 +0000 (22:02 +0100)
Add 32bpp framebuffer support for the Atmel HLCDC driver. This is
needed for output bpp higher than 16bpp.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/video/atmel_hlcdfb.c

index 0ce237094dd79ee3e4a1db42b6eebb377953b747..960b474b76b863aa9cc59c9c8158631e88860c48 100644 (file)
@@ -162,6 +162,10 @@ void lcd_ctrl_init(void *lcdbase)
                lcdc_writel(&regs->lcdc_basecfg1,
                        LCDC_BASECFG1_RGBMODE_16BPP_RGB_565);
                break;
+       case 32:
+               lcdc_writel(&regs->lcdc_basecfg1,
+                       LCDC_BASECFG1_RGBMODE_24BPP_RGB_888);
+               break;
        default:
                BUG();
                break;