Commit f14d3f6c authored by Neil Armstrong's avatar Neil Armstrong
Browse files

drm/bridge: synopsys: dw-hdmi: allow ycbcr420 modes for >= 0x200a



Now the DW-HDMI Controller supports the HDMI2.0 modes, enable support
for these modes in the connector if the platform supports them.
We limit these modes to DW-HDMI IP version >= 0x200a which
are designed to support HDMI2.0 display modes.

Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarJernej Škrabec <jernej.skrabec@siol.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200304104052.17196-6-narmstrong@baylibre.com
parent 6c3c7199
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3252,6 +3252,12 @@ __dw_hdmi_probe(struct platform_device *pdev,
	hdmi->bridge.of_node = pdev->dev.of_node;
#endif

	if (hdmi->version >= 0x200a)
		hdmi->connector.ycbcr_420_allowed =
			hdmi->plat_data->ycbcr_420_allowed;
	else
		hdmi->connector.ycbcr_420_allowed = false;

	memset(&pdevinfo, 0, sizeof(pdevinfo));
	pdevinfo.parent = dev;
	pdevinfo.id = PLATFORM_DEVID_AUTO;
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ struct dw_hdmi_plat_data {
	unsigned long input_bus_format;
	unsigned long input_bus_encoding;
	bool use_drm_infoframe;
	bool ycbcr_420_allowed;

	/* Vendor PHY support */
	const struct dw_hdmi_phy_ops *phy_ops;