linux (RPi): update patch to hide 4k modes

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2020-12-18 21:10:07 +01:00
parent 3a804b3b7e
commit 9635834760

View File

@ -1,35 +1,21 @@
From dafb32ca693b99d491406a151ca00c297d6b2b59 Mon Sep 17 00:00:00 2001
From: popcornmix <popcornmix@gmail.com>
Date: Mon, 16 Mar 2020 20:38:37 +0000
Subject: [PATCH] vc4_hdmi: Reduce max pixel rate to hide 4k modes
commit ff435e359364b968d14bb4c96b5698712d9cea90
Author: Matthias Reichl <hias@horus.com>
Date: Fri Dec 18 20:53:43 2020 +0100
vc4_hdmi: Increase pixel clock to 162MHz for 1920x1200@60
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
vc4_hdmi: Reduce max pixel rate to hide 4k modes
162MHz limits to 1920x1200@60
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index 83aaca83239fb..b9e26c3dc3fb1 100644
index 2386c7303a215..561d3fa3bb926 100644
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -2378,7 +2378,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi0_variant = {
.encoder_type = VC4_ENCODER_TYPE_HDMI0,
.debugfs_name = "hdmi0_regs",
.card_name = "vc4-hdmi-0",
- .max_pixel_clock = 297000000,
+ .max_pixel_clock = 162000000,
.cec_input_clock = 27000000,
.registers = vc5_hdmi_hdmi0_fields,
.num_registers = ARRAY_SIZE(vc5_hdmi_hdmi0_fields),
@@ -2407,7 +2407,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi1_variant = {
.encoder_type = VC4_ENCODER_TYPE_HDMI1,
.debugfs_name = "hdmi1_regs",
.card_name = "vc4-hdmi-1",
- .max_pixel_clock = 297000000,
+ .max_pixel_clock = 162000000,
.cec_input_clock = 27000000,
.registers = vc5_hdmi_hdmi1_fields,
.num_registers = ARRAY_SIZE(vc5_hdmi_hdmi1_fields),
--
2.20.1
@@ -404,7 +404,7 @@ static void hdmi_codec_eld_chmap(struct vc4_hdmi *vc4_hdmi)
vc4_hdmi->audio.chmap = hdmi_codec_stereo_chmaps;
}
-#define HDMI_14_MAX_TMDS_CLK (340 * 1000 * 1000)
+#define HDMI_14_MAX_TMDS_CLK (162 * 1000 * 1000)
static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused)
{