From: daeinki Date: Mon, 8 Feb 2010 08:01:24 +0000 (+0900) Subject: s5pc110: lcd: reversed lcd panel for Cypress and bug fix. X-Git-Tag: JB06_20100208~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f390d27e2f4dd4418bf0ae255b5c958f02c921e;p=kernel%2Fu-boot.git s5pc110: lcd: reversed lcd panel for Cypress and bug fix. Signed-off-by: daeinki --- diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 8b82e01..9a9ec0c 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -662,6 +662,8 @@ static void show_hw_revision(void) } else if (machine_is_geminus()) { if ((board_rev & 0xf) < 1) s5pc1xx_set_cpu_rev(0); + } else if (machine_is_cypress()) { + s5pc1xx_set_cpu_rev(1); } else { s5pc1xx_set_cpu_rev(0); } @@ -1382,6 +1384,7 @@ struct spi_platform_data { unsigned int so_num; unsigned int board_is_media; + unsigned int board_is_cypress; }; extern void s6e63m0_set_platform_data(struct spi_platform_data *pd); @@ -1494,6 +1497,8 @@ void lcd_cfg_gpio(void) spi_pd.si_bank = &gpio_base->gpio_mp0_4; spi_pd.si_num = 2; + spi_pd.board_is_cypress = 1; + /* these data would be sent to s6e63m0 lcd panel driver. */ s6e63m0_set_platform_data(&spi_pd); } diff --git a/drivers/video/s5p-spi.h b/drivers/video/s5p-spi.h index bef43cc..85fc76d 100644 --- a/drivers/video/s5p-spi.h +++ b/drivers/video/s5p-spi.h @@ -19,5 +19,6 @@ struct spi_platform_data { unsigned int so_num; unsigned int board_is_media; + unsigned int board_is_cypress }; diff --git a/drivers/video/s6e63m0.c b/drivers/video/s6e63m0.c index 90c46c2..8b253d4 100644 --- a/drivers/video/s6e63m0.c +++ b/drivers/video/s6e63m0.c @@ -516,7 +516,7 @@ void s6e63m0_cfg_ldo(void) s6e63m0_panel_send_sequence(SEQ_PANEL_CONDITION_SET); - if (s6e63m0->board_is_media) + if (s6e63m0->board_is_media || s6e63m0->board_is_cypress) s6e63m0_panel_send_sequence(SEQ_DISPLAY_CONDITION_SET_REV); else s6e63m0_panel_send_sequence(SEQ_DISPLAY_CONDITION_SET);