s5pc1xx: p1p2: Set low gamma value and add MLCD_ON2
authorDonghwa Lee <dh09.lee@samsung.com>
Tue, 1 Dec 2009 01:44:18 +0000 (10:44 +0900)
committerDonghwa Lee <dh09.lee@samsung.com>
Tue, 1 Dec 2009 01:44:18 +0000 (10:44 +0900)
drivers/video/ams701ka.c
drivers/video/s5p-fimd.c

index d44a5fe..a8ee529 100644 (file)
@@ -101,6 +101,24 @@ const unsigned short SEQ_STANDBY_OFF[] = {
 const unsigned short GAMMA_SETTING[] = {
        0x3f, 0x0000,   /* gamma setting : ams701ka */
 
+       /* Low Red Gamma */
+       0x4c, 0xc209,
+       0x4d, 0xdac8,
+       0x4e, 0xc4bf,
+       0x4f, 0x0093,
+
+       /* Low Green Gamma */
+       0x50, 0xad04,
+       0x51, 0xd1c5,
+       0x52, 0xbfc8,
+       0x53, 0x009d,
+
+       /* Low Blue Gamma */
+       0x54, 0xbb09,
+       0x55, 0xd2c9,
+       0x56, 0xbcc4,
+       0x57, 0x00b7,
+#if 0
        /* High Red Gamma */
        0x40, 0x0720,
        0x41, 0xCBA7,
@@ -119,30 +137,6 @@ const unsigned short GAMMA_SETTING[] = {
        0x4a, 0xA996,
        0x4b, 0x00C7,
 
-#if 0
-       0xb0, 0x0002,
-       0xb1, 0x0068,
-       0xb2, 0x007f,
-       0xb3, 0x005f,
-       0xb4, 0x0003,
-       0xb5, 0x005f,
-       0xb6, 0x0000,
-
-       0xb7, 0x0004,
-       0xb8, 0x005c,
-       0xb9, 0x007f,
-       0xba, 0x005f,
-       0xbb, 0x0004,
-       0xbc, 0x005f,
-       0xbd, 0x0001,
-
-       0xbe, 0x0009,
-       0xbf, 0x0063,
-       0xc0, 0x007f,
-       0xc1, 0x005f,
-       0xc2, 0x0005,
-       0xc3, 0x005f,
-       0xc4, 0x0002,
 #endif
 
        ENDDEF, 0x0000
@@ -152,7 +146,6 @@ const unsigned short MANUAL_POWER_ON_SETTING[] = {
        
        SLEEPMSEC, 30,  /* FIXME */
        0x06, 0x0001,
-#if 1
        SLEEPMSEC, 30,  /* FIXME */
        0x06, 0x0005,
        SLEEPMSEC, 30,  /* FIXME */
@@ -172,12 +165,10 @@ const unsigned short MANUAL_POWER_ON_SETTING[] = {
        SLEEPMSEC, 30,  /* FIXME */
 
        0x03, 0x134A,   /* ETC Register setting */
-//     0x04, 0x86a4,   /* LTPS Power on setting VCIR=2.7V Display is not clean */
-       0x04, 0x8664,   /* LTPS Power on setting VCIR=2.5V */
+       0x04, 0x86a4,   /* LTPS Power on setting VCIR=2.7V Display is not clean */
 
        0x14, 0x0808,   /* VFP, VBP Register setting */
        0x15, 0x3090,   /* HSW,HFP,HBP Register setting */
-#endif
        ENDDEF, 0x0000
 
 };
@@ -331,6 +322,7 @@ void lcd_panel_power_on(void)
 
        /* set gpio data for MLCD_ON to HIGH */
        gpio_set_value(&gpio->gpio_j1, 3, 1);
+       gpio_set_value(&gpio->gpio_j1, 4, 1);
        udelay(100000);
 
 
index d166627..2766166 100644 (file)
@@ -105,6 +105,7 @@ void s5pc_c110_gpio_setup(void)
 
        /* gpio pad configuration for LCD ON. */
        gpio_cfg_pin(&gpio->gpio_j1, 3, GPIO_OUTPUT);
+       gpio_cfg_pin(&gpio->gpio_j1, 4, GPIO_OUTPUT);
 
        /* gpio pad configuration for DISPLAY_CS, DISPLAY_CLK, DISPLAY_SO, DISPLAY_SI. */
        gpio_cfg_pin(&gpio->gpio_mp0_1, 1, GPIO_OUTPUT);