]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx53/tx6: fix crash when 8bpp BMP file is loaded
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 11 Dec 2013 09:30:45 +0000 (10:30 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 11 Dec 2013 09:30:45 +0000 (10:30 +0100)
board/karo/tx53/tx53.c
board/karo/tx6/tx6qdl.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[] = {
index edea4457412cb37366424b8b60194a5be890fb3b..6f3cd10348599e5bf63c45d149bd28457e5c73c9 100644 (file)
@@ -701,12 +701,14 @@ static const struct gpio stk5_gpios[] = {
 };
 
 #ifdef CONFIG_LCD
+static u16 tx6_cmap[256];
 vidinfo_t panel_info = {
        /* set to max. size supported by SoC */
        .vl_col = 1920,
        .vl_row = 1080,
 
        .vl_bpix = LCD_COLOR24,    /* Bits per pixel, 0: 1bpp, 1: 2bpp, 2: 4bpp, 3: 8bpp ... */
+       .cmap = tx6_cmap,
 };
 
 static struct fb_videomode tx6_fb_modes[] = {