s5pc110: lcd: reversed lcd panel for Cypress and bug fix.
authordaeinki <inki.dae@samsung.com>
Mon, 8 Feb 2010 08:01:24 +0000 (17:01 +0900)
committerdaeinki <inki.dae@samsung.com>
Mon, 8 Feb 2010 08:01:24 +0000 (17:01 +0900)
Signed-off-by: daeinki <inki.dae@samsung.com>
board/samsung/universal/universal.c
drivers/video/s5p-spi.h
drivers/video/s6e63m0.c

index 8b82e01..9a9ec0c 100644 (file)
@@ -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);
        }
index bef43cc..85fc76d 100644 (file)
@@ -19,5 +19,6 @@ struct spi_platform_data {
        unsigned int so_num;
 
        unsigned int board_is_media;
+       unsigned int board_is_cypress
 };
 
index 90c46c2..8b253d4 100644 (file)
@@ -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);