]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx53/tx53.c
karo: tx53/tx6: fix crash when 8bpp BMP file is loaded
[karo-tx-uboot.git] / board / karo / tx53 / tx53.c
index bec98a1e7bc11c8f1e04598a74efbf693319c9a4..e2729ccf54ccf692e70987aa4e0ba2a3a3310ec6 100644 (file)
@@ -607,12 +607,14 @@ static const struct gpio stk5_gpios[] = {
 };
 
 #ifdef CONFIG_LCD
+static u16 tx53_cmap[256];
 vidinfo_t panel_info = {
        /* set to max. size supported by SoC */
        .vl_col = 1600,
        .vl_row = 1200,
 
        .vl_bpix = LCD_COLOR24,    /* Bits per pixel, 0: 1bpp, 1: 2bpp, 2: 4bpp, 3: 8bpp ... */
+       .cmap = tx53_cmap,
 };
 
 static struct fb_videomode tx53_fb_modes[] = {