dm: x86: video: Add a driver-model driver for ivybridge graphics
[oweals/u-boot.git] / drivers / video / atmel_hlcdfb.c
index 935ae42a9c873904ff8e7a174332438fe5d7d34c..960b474b76b863aa9cc59c9c8158631e88860c48 100644 (file)
 #include <lcd.h>
 #include <atmel_hlcdc.h>
 
+#if defined(CONFIG_LCD_LOGO)
+#include <bmp_logo.h>
+#endif
+
 /* configurable parameters */
 #define ATMEL_LCDC_CVAL_DEFAULT                0xc8
 #define ATMEL_LCDC_DMA_BURST_LEN       8
@@ -37,6 +41,15 @@ void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue)
                panel_info.mmio + ATMEL_LCDC_LUT(regno));
 }
 
+ushort *configuration_get_cmap(void)
+{
+#if defined(CONFIG_LCD_LOGO)
+       return bmp_logo_palette;
+#else
+       return NULL;
+#endif
+}
+
 void lcd_ctrl_init(void *lcdbase)
 {
        unsigned long value;
@@ -149,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;