From: Huang Jiachai Date: Tue, 17 Nov 2015 01:55:34 +0000 (+0800) Subject: video: rockchip: lcdc: 3368: fix vop config error when use eDP output X-Git-Tag: firefly_0821_release~3541 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee0b9026e1827a1c4651ec1b82ffc843ef8e19ec;p=firefly-linux-kernel-4.4.55.git video: rockchip: lcdc: 3368: fix vop config error when use eDP output Change-Id: I2336b95e7dc707a17e417eafd823d6ba6737adf8 Signed-off-by: Huang Jiachai --- diff --git a/drivers/video/rockchip/lcdc/rk3368_lcdc.c b/drivers/video/rockchip/lcdc/rk3368_lcdc.c index 35c116ce0f4c..43cfdcaa4106 100644 --- a/drivers/video/rockchip/lcdc/rk3368_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3368_lcdc.c @@ -2084,13 +2084,10 @@ static int rk3368_load_screen(struct rk_lcdc_driver *dev_drv, bool initscreen) mask = m_EDP_OUT_EN | m_RGB_OUT_EN; val = v_EDP_OUT_EN(1) | v_RGB_OUT_EN(0); lcdc_msk_reg(lcdc_dev, SYS_CTRL, mask, val); - /*because edp have to sent aaa fmt */ - mask = m_DITHER_DOWN_EN; - val = v_DITHER_DOWN_EN(0); - mask |= m_EDP_HSYNC_POL | m_EDP_VSYNC_POL | + mask = m_EDP_HSYNC_POL | m_EDP_VSYNC_POL | m_EDP_DEN_POL | m_EDP_DCLK_POL; - val |= v_EDP_HSYNC_POL(screen->pin_hsync) | + val = v_EDP_HSYNC_POL(screen->pin_hsync) | v_EDP_VSYNC_POL(screen->pin_vsync) | v_EDP_DEN_POL(screen->pin_den) | v_EDP_DCLK_POL(screen->pin_dclk);