Skip to contentSkip to conversation

drm/rockchip: vop2: add polarity flags to RGB output

PATCH Applied Gerald Loacker 2 participants 2 messages Mar 2, 2023 – Mar 9, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/rockchip: vop2: add polarity flags to RGB output

Use h/v-sync and pixel clock polarity flags for RGB output. For all other outputs this is already implemented.

---
 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +2 -0
index 8cecf81a5ae0..e8b61973ade2 100644
@@ -1435,6 +1435,8 @@ static void rk3568_set_intf_mux(struct vop2_video_port *vp, int id,
 		die &= ~RK3568_SYS_DSP_INFACE_EN_RGB_MUX;
 		die |= RK3568_SYS_DSP_INFACE_EN_RGB |
 			   FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_RGB_MUX, vp->id);
+		dip &= ~RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL;
+		dip |= FIELD_PREP(RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL, polflags);
 		if (polflags & POLFLAG_DCLK_INV)
 			regmap_write(vop2->grf, RK3568_GRF_VO_CON1, BIT(3 + 16) | BIT(3));
 		else
Signature · 1 line
2.37.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Gerald Loacker

Use h/v-sync and pixel clock polarity flags for RGB output. For all other outputs this is already implemented.

Applied, thanks!

[1/1] drm/rockchip: vop2: add polarity flags to RGB output

      commit: 66ab57574f2c8233550f641ecdc34fd0ef61341d

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>