Skip to content

Commit

Permalink
drm/bridge: dw-hdmi: add max bpc connector property
Browse files Browse the repository at this point in the history
Add the max_bpc property to the dw-hdmi connector to prepare support
for 10, 12 & 16bit output support.

Signed-off-by: Jonas Karlman <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Reviewed-by: Jernej Škrabec <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Kwiboo authored and superna9999 committed Mar 10, 2020
1 parent c6cae70 commit b8e810e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2414,6 +2414,14 @@ static int dw_hdmi_bridge_attach(struct drm_bridge *bridge,
DRM_MODE_CONNECTOR_HDMIA,
hdmi->ddc);

/*
* drm_connector_attach_max_bpc_property() requires the
* connector to have a state.
*/
drm_atomic_helper_connector_reset(connector);

drm_connector_attach_max_bpc_property(connector, 8, 16);

if (hdmi->version >= 0x200a && hdmi->plat_data->use_drm_infoframe)
drm_object_attach_property(&connector->base,
connector->dev->mode_config.hdr_output_metadata_property, 0);
Expand Down

0 comments on commit b8e810e

Please sign in to comment.