From df0a7b5b3d02a31eb1b33b4d30d54a574bc7e88b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Mon, 21 Oct 2013 15:41:32 +0200 Subject: [PATCH] karo: tx28: add missing init of panel_info --- board/karo/tx28/tx28.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/board/karo/tx28/tx28.c b/board/karo/tx28/tx28.c index c56876b766..e16a02374c 100644 --- a/board/karo/tx28/tx28.c +++ b/board/karo/tx28/tx28.c @@ -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) / -- 2.39.5