提交 9f89cff8 编写于 作者: M Maxime Ripard 提交者: Zheng Zengkai

drm/vc4: hdmi: Limit the BCM2711 to the max without scrambling

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

Unlike the previous generations, the HSM clock limitation is way above
what we can reach without scrambling, so let's move the maximum
frequency we support to the maximum clock frequency without scrambling.
Reviewed-by: NDave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: NMaxime Ripard <maxime@cerno.tech>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 e6cce33e
...@@ -400,6 +400,8 @@ static void hdmi_codec_eld_chmap(struct vc4_hdmi *vc4_hdmi) ...@@ -400,6 +400,8 @@ static void hdmi_codec_eld_chmap(struct vc4_hdmi *vc4_hdmi)
vc4_hdmi->audio.chmap = hdmi_codec_stereo_chmaps; vc4_hdmi->audio.chmap = hdmi_codec_stereo_chmaps;
} }
#define HDMI_14_MAX_TMDS_CLK (340 * 1000 * 1000)
static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused) static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *)m->private; struct drm_info_node *node = (struct drm_info_node *)m->private;
...@@ -2676,7 +2678,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi0_variant = { ...@@ -2676,7 +2678,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi0_variant = {
.encoder_type = VC4_ENCODER_TYPE_HDMI0, .encoder_type = VC4_ENCODER_TYPE_HDMI0,
.debugfs_name = "hdmi0_regs", .debugfs_name = "hdmi0_regs",
.card_name = "vc4-hdmi-0", .card_name = "vc4-hdmi-0",
.max_pixel_clock = 297000000, .max_pixel_clock = HDMI_14_MAX_TMDS_CLK,
.registers = vc5_hdmi_hdmi0_fields, .registers = vc5_hdmi_hdmi0_fields,
.num_registers = ARRAY_SIZE(vc5_hdmi_hdmi0_fields), .num_registers = ARRAY_SIZE(vc5_hdmi_hdmi0_fields),
.phy_lane_mapping = { .phy_lane_mapping = {
...@@ -2703,7 +2705,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi1_variant = { ...@@ -2703,7 +2705,7 @@ static const struct vc4_hdmi_variant bcm2711_hdmi1_variant = {
.encoder_type = VC4_ENCODER_TYPE_HDMI1, .encoder_type = VC4_ENCODER_TYPE_HDMI1,
.debugfs_name = "hdmi1_regs", .debugfs_name = "hdmi1_regs",
.card_name = "vc4-hdmi-1", .card_name = "vc4-hdmi-1",
.max_pixel_clock = 297000000, .max_pixel_clock = HDMI_14_MAX_TMDS_CLK,
.registers = vc5_hdmi_hdmi1_fields, .registers = vc5_hdmi_hdmi1_fields,
.num_registers = ARRAY_SIZE(vc5_hdmi_hdmi1_fields), .num_registers = ARRAY_SIZE(vc5_hdmi_hdmi1_fields),
.phy_lane_mapping = { .phy_lane_mapping = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册