mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
drm/rockchip: vop2: add polarity configs of rgb sync pins
Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I7ac600119565d5226c95b95d5bd7cb59f8ca7523
This commit is contained in:
@@ -7484,6 +7484,7 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc, struct drm_crtc_state
|
||||
|
||||
VOP_CTRL_SET(vop2, rgb_en, 1);
|
||||
VOP_CTRL_SET(vop2, rgb_mux, vp_data->id);
|
||||
VOP_CTRL_SET(vop2, rgb_pin_pol, val);
|
||||
VOP_GRF_SET(vop2, sys_grf, grf_dclk_inv, dclk_inv);
|
||||
}
|
||||
|
||||
|
||||
@@ -3420,6 +3420,7 @@ static const struct vop2_ctrl rk3562_vop_ctrl = {
|
||||
.bt656_dclk_pol = VOP_REG(RK3568_DSP_IF_CTRL, 0x1, 6),
|
||||
.bt1120_yc_swap = VOP_REG(RK3568_DSP_IF_CTRL, 0x1, 9),
|
||||
.bt1120_dclk_pol = VOP_REG(RK3568_DSP_IF_CTRL, 0x1, 10),
|
||||
.rgb_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 0),
|
||||
.lvds_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 0),
|
||||
.lvds_dclk_pol = VOP_REG(RK3568_DSP_IF_POL, 0x1, 3),
|
||||
.mipi_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 12),
|
||||
@@ -3478,6 +3479,7 @@ static const struct vop2_ctrl rk3568_vop_ctrl = {
|
||||
.bt656_yc_swap = VOP_REG(RK3568_DSP_IF_CTRL, 0x1, 5),
|
||||
.bt1120_yc_swap = VOP_REG(RK3568_DSP_IF_CTRL, 0x1, 9),
|
||||
.gamma_port_sel = VOP_REG(RK3568_LUT_PORT_SEL, 0x3, 0),
|
||||
.rgb_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 0),
|
||||
.lvds_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 0),
|
||||
.lvds_dclk_pol = VOP_REG(RK3568_DSP_IF_POL, 0x1, 3),
|
||||
.hdmi_pin_pol = VOP_REG(RK3568_DSP_IF_POL, 0x7, 4),
|
||||
|
||||
Reference in New Issue
Block a user