summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEvoke Zhang <evoke.zhang@amlogic.com>2019-03-08 18:33:42 +0800
committerDongjin Kim <tobetter@gmail.com>2019-05-16 13:18:02 +0900
commit333d8e3c5bf1456d387952a0bef68fab7d18fd52 (patch)
treef26489862ed19510fee6e7e067309ecee06b0dc3 /drivers
parentdc86e2e1c4695a1c5593b8d726cf5f4207ed8d6b (diff)
downloadu-boot-odroid-c1-333d8e3c5bf1456d387952a0bef68fab7d18fd52.tar.gz
lcd: add vbyone large vswing support for tl1 [1/1]
PD#SWPL-5665 Problem: some vbyone panel need large vswing Solution: add large vswing support for vbyone Verify: x301 Change-Id: Ib599e6ab49761455f6d04be45e40a4d2186087da Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/display/lcd/aml_lcd_phy_config.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/display/lcd/aml_lcd_phy_config.c b/drivers/display/lcd/aml_lcd_phy_config.c
index 5c2b169aa5..d0eeb443e6 100644
--- a/drivers/display/lcd/aml_lcd_phy_config.c
+++ b/drivers/display/lcd/aml_lcd_phy_config.c
@@ -246,8 +246,13 @@ void lcd_vbyone_phy_set(struct lcd_config_s *pconf, int status)
preem = 0x1;
}
data32 = lvds_vx1_p2p_phy_preem_tl1[preem];
- lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL14,
- 0xf02027a0 | vswing);
+ if (ext_pullup) {
+ lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL14,
+ 0xff2027e0 | vswing);
+ } else {
+ lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL14,
+ 0xf02027a0 | vswing);
+ }
lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL15, 0);
lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL16, 0x80000000);
lcd_hiu_write(HHI_DIF_CSI_PHY_CNTL8, 0x40004);