[PATCH] drm/exynos/hdmi: add 85.5MHz pixel clock for v14 HDMI PHY

Tobias Jakobi tjakobi at math.uni-bielefeld.de
Mon Sep 11 13:59:24 UTC 2017


From: Daniel Drake <drake at endlessm.com>

Configuration details from Samsung. This enables 1366x768 at 60Hz,
which also needs the 257px timing hack to work around a mixer
limitation.

Signed-off-by: Daniel Drake <drake at endlessm.com>
Signed-off-by: Tobias Jakobi <tjakobi at math.uni-bielefeld.de>
---
 drivers/gpu/drm/exynos/exynos_hdmi.c  | 9 +++++++++
 drivers/gpu/drm/exynos/exynos_mixer.c | 1 +
 2 files changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 2b14cc7def6f..adc69331dafe 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -298,6 +298,15 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = {
 		},
 	},
 	{
+		.pixel_clock = 85500000,
+		.conf = {
+			0x01, 0xd1, 0x24, 0x11, 0x40, 0x40, 0xd0, 0x08,
+			0x84, 0xa0, 0xd6, 0xd8, 0x45, 0xa0, 0xac, 0x80,
+			0x08, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86,
+			0x54, 0x90, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+		},
+	},
+	{
 		.pixel_clock = 106500000,
 		.conf = {
 			0x01, 0xd1, 0x2c, 0x12, 0x40, 0x0c, 0x09, 0x08,
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 96c3f61f080e..1dd65e261385 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -1127,6 +1127,7 @@ static int mixer_atomic_check(struct exynos_drm_crtc *crtc,
 
 	/* Check against some specific resolutions. */
 	if ((w == 1024 && h == 768) ||
+		(w == 1366 && h == 768) ||
 		(w == 1280 && h == 1024))
 		return 0;
 
-- 
2.13.5



More information about the dri-devel mailing list