Let platform glue drivers declare the supported colorspaces, the same way they already declare supported output formats and max bpc.
Signed-off-by: Jan Claußen <[email protected]> --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 3 +++ include/drm/bridge/dw_hdmi_qp.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c index c9568aea98dc..6017c44b03d4 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c @@ -1129,6 +1129,9 @@ struct dw_hdmi_qp *dw_hdmi_qp_bind(struct platform_device *pdev, if (plat_data->supported_formats) hdmi->bridge.supported_formats = plat_data->supported_formats; + if (plat_data->supported_colorspaces) + hdmi->bridge.supported_colorspaces = plat_data->supported_colorspaces; + if (plat_data->max_bpc) hdmi->bridge.max_bpc = plat_data->max_bpc; diff --git a/include/drm/bridge/dw_hdmi_qp.h b/include/drm/bridge/dw_hdmi_qp.h index 6ea9c561cfef..a15af81989cc 100644 --- a/include/drm/bridge/dw_hdmi_qp.h +++ b/include/drm/bridge/dw_hdmi_qp.h @@ -27,6 +27,8 @@ struct dw_hdmi_qp_plat_data { unsigned long ref_clk_rate; /* Supported output formats: bitmask of @drm_output_color_format */ unsigned int supported_formats; + /* Supported colorspaces: bitmask of &enum drm_colorspace */ + unsigned int supported_colorspaces; /* Maximum bits per color channel: 8, 10 or 12 */ unsigned int max_bpc; }; -- 2.56.0
