Add the "Media" VRR display mode to the set of VRR display modes being registered, and set the qms_supported flag in the connector's HDMI sub-struct. The actual QMS functionality itself is implemented in the common HDMI state helpers.
Signed-off-by: Nicolas Frattaroli <[email protected]> --- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c index dcde50bca36b..215cf746dc41 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -90,7 +90,8 @@ #define RK_COLOR_FMT_YUV420 0x3 #define RK_VRR_DISPLAY_MODES (BIT(VRR_DISPLAY_MODE_GAME) | \ - BIT(VRR_DISPLAY_MODE_OFF)) + BIT(VRR_DISPLAY_MODE_OFF) | \ + BIT(VRR_DISPLAY_MODE_MEDIA)) struct rockchip_hdmi_qp { struct device *dev; @@ -753,6 +754,8 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master, return dev_err_probe(hdmi->dev, ret, "Failed to attach 'vrr_display_mode' property\n"); + connector->hdmi.qms_supported = true; + ret = drm_connector_attach_vrr_display_limits_properties(connector); if (ret) return dev_err_probe(hdmi->dev, ret, -- 2.56.0
