From: daeinki Date: Mon, 23 Nov 2009 12:34:40 +0000 (+0900) Subject: s5pc110: fb: bug fix. X-Git-Tag: CES1223_2~117^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=330d16c865b1b3eac39c7e171af40f1cd884e2f9;p=kernel%2Fu-boot.git s5pc110: fb: bug fix. Signed-off-by: daeinki --- diff --git a/drivers/video/s5p-fb.c b/drivers/video/s5p-fb.c index 59d8e56..8e28034 100644 --- a/drivers/video/s5p-fb.c +++ b/drivers/video/s5p-fb.c @@ -228,6 +228,14 @@ void lcd_ctrl_init(void *lcdbase) s5pc_gpio_setup(); s5pc_lcd_init(&panel_info); + + /* font test */ + /* + init_font(); + set_font_color(FONT_WHITE); + fb_printf("Test\n"); + exit_font(); + */ } diff --git a/drivers/video/s5p-fimd.c b/drivers/video/s5p-fimd.c index 1bc52ab..d166627 100644 --- a/drivers/video/s5p-fimd.c +++ b/drivers/video/s5p-fimd.c @@ -288,7 +288,15 @@ void s5pc_fimd_lcd_init(vidinfo_t *vid) /* set polarity */ cfg = 0; - cfg |= S5P_VIDCON1_IVDEN_INVERT | S5P_VIDCON1_IVCLK_RISING_EDGE; + if (!pvid->vl_clkp) + cfg |= S5P_VIDCON1_IVCLK_RISING_EDGE; + if (!pvid->vl_hsp) + cfg |= S5P_VIDCON1_IHSYNC_INVERT; + if (!pvid->vl_vsp) + cfg |= S5P_VIDCON1_IVSYNC_INVERT; + if (!pvid->vl_dp) + cfg |= S5P_VIDCON1_IVDEN_INVERT; + writel(cfg, ctrl_base + S5P_VIDCON1); /* set timing */