mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
51 lines
1.8 KiB
Diff
51 lines
1.8 KiB
Diff
From 1cde4e7f788b4ace414c0d6274686a5812425a13 Mon Sep 17 00:00:00 2001
|
|
From: Neil Armstrong <narmstrong@baylibre.com>
|
|
Date: Mon, 20 May 2019 15:37:49 +0200
|
|
Subject: [PATCH 1/5] drm/bridge: 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: Neil Armstrong <narmstrong@baylibre.com>
|
|
Tested-by: Heiko Stuebner <heiko@sntech.de>
|
|
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
|
|
---
|
|
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ++++++
|
|
include/drm/bridge/dw_hdmi.h | 1 +
|
|
2 files changed, 7 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
index c6490949d9db..8c273270d7ea 100644
|
|
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
|
|
@@ -2719,6 +2719,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;
|
|
diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h
|
|
index c402364aec0d..04e63ed29417 100644
|
|
--- a/include/drm/bridge/dw_hdmi.h
|
|
+++ b/include/drm/bridge/dw_hdmi.h
|
|
@@ -126,6 +126,7 @@ struct dw_hdmi_plat_data {
|
|
const struct drm_display_mode *mode);
|
|
unsigned long input_bus_format;
|
|
unsigned long input_bus_encoding;
|
|
+ bool ycbcr_420_allowed;
|
|
|
|
/* Vendor PHY support */
|
|
const struct dw_hdmi_phy_ops *phy_ops;
|
|
--
|
|
2.20.1
|
|
|