]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx28: add missing init of panel_info
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:41:32 +0000 (15:41 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:41:32 +0000 (15:41 +0200)
board/karo/tx28/tx28.c

index c56876b76698f70664f260ab521f3ad3dc2674b6..e16a02374cf4afd2e07d6591b70ec20b2d516a89 100644 (file)
@@ -686,6 +686,20 @@ void lcd_ctrl_init(void *lcdbase)
                printf("\n");
                return;
        }
+       panel_info.vl_col = p->xres;
+       panel_info.vl_row = p->yres;
+
+       switch (color_depth) {
+       case 8:
+               panel_info.vl_bpix = LCD_COLOR8;
+               break;
+       case 16:
+               panel_info.vl_bpix = LCD_COLOR16;
+               break;
+       default:
+               panel_info.vl_bpix = LCD_COLOR24;
+       }
+
        p->pixclock = KHZ2PICOS(refresh *
                (p->xres + p->left_margin + p->right_margin + p->hsync_len) *
                (p->yres + p->upper_margin + p->lower_margin + p->vsync_len) /