vpp: update ofifo vs_pol config for tl1 [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Mon, 10 Dec 2018 06:08:48 +0000 (14:08 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 12 Dec 2018 02:46:41 +0000 (18:46 -0800)
PD#SWPL-3049

Problem:
vpp ofifo positive vs_pol can't fit all the display situation

Solution:
change vpp ofifo vs_pol to negative

Verify:
x301

Change-Id: I539c3514c0f3638a9d90c9c4a71a6c9863dac79a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/vout/lcd/lcd_tablet/lcd_drv.c
drivers/amlogic/media/vout/lcd/lcd_tv/lcd_drv.c

index d5d69bb..da26d57 100644 (file)
@@ -374,7 +374,8 @@ static void lcd_venc_set(struct lcd_config_s *pconf)
 
        switch (lcd_drv->data->chip_type) {
        case LCD_CHIP_TL1:
-               lcd_vcbus_write(ENCL_INBUF_CNTL1, (1 << 14) | (h_active - 1));
+               /*[15:14]: 2'b10 or 2'b01*/
+               lcd_vcbus_write(ENCL_INBUF_CNTL1, (2 << 14) | (h_active - 1));
                lcd_vcbus_write(ENCL_INBUF_CNTL0, 0x200);
                break;
        default:
index 4c576bd..17fb569 100644 (file)
@@ -433,7 +433,8 @@ static void lcd_venc_set(struct lcd_config_s *pconf)
 
        switch (lcd_drv->data->chip_type) {
        case LCD_CHIP_TL1:
-               lcd_vcbus_write(ENCL_INBUF_CNTL1, (1 << 14) | (h_active - 1));
+               /*[15:14]: 2'b10 or 2'b01*/
+               lcd_vcbus_write(ENCL_INBUF_CNTL1, (2 << 14) | (h_active - 1));
                lcd_vcbus_write(ENCL_INBUF_CNTL0, 0x200);
                break;
        default: