aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-03-02 10:21:05 -0500
committerDave Airlie <airlied@redhat.com>2011-03-02 22:11:25 -0500
commite1e84017f95504348308085ae7cd0bfe268caf10 (patch)
treea6235be673a66bd3c80b7bf352820226af4398b5
parentba77a26cb570f8b506bcb7991b1e154b8bd38914 (diff)
drm/radeon/kms: allow max clock of 340 Mhz on hdmi 1.3+
hdmi 1.3 raises the max clock from 165 Mhz to 340 Mhz. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index 22b7e3dc0eca..3f3c9aac46cc 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -972,7 +972,16 @@ static int radeon_dvi_mode_valid(struct drm_connector *connector,
972 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || 972 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) ||
973 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) 973 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
974 return MODE_OK; 974 return MODE_OK;
975 else 975 else if (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_A) {
976 if (ASIC_IS_DCE3(rdev)) {
977 /* HDMI 1.3+ supports max clock of 340 Mhz */
978 if (mode->clock > 340000)
979 return MODE_CLOCK_HIGH;
980 else
981 return MODE_OK;
982 } else
983 return MODE_CLOCK_HIGH;
984 } else
976 return MODE_CLOCK_HIGH; 985 return MODE_CLOCK_HIGH;
977 } 986 }
978 return MODE_OK; 987 return MODE_OK;