|
@@ -289,11 +289,14 @@ intel_lvds_mode_valid(struct drm_connector *connector,
|
|
{
|
|
{
|
|
struct intel_connector *intel_connector = to_intel_connector(connector);
|
|
struct intel_connector *intel_connector = to_intel_connector(connector);
|
|
struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;
|
|
struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;
|
|
|
|
+ int max_pixclk = to_i915(connector->dev)->max_dotclk_freq;
|
|
|
|
|
|
if (mode->hdisplay > fixed_mode->hdisplay)
|
|
if (mode->hdisplay > fixed_mode->hdisplay)
|
|
return MODE_PANEL;
|
|
return MODE_PANEL;
|
|
if (mode->vdisplay > fixed_mode->vdisplay)
|
|
if (mode->vdisplay > fixed_mode->vdisplay)
|
|
return MODE_PANEL;
|
|
return MODE_PANEL;
|
|
|
|
+ if (fixed_mode->clock > max_pixclk)
|
|
|
|
+ return MODE_CLOCK_HIGH;
|
|
|
|
|
|
return MODE_OK;
|
|
return MODE_OK;
|
|
}
|
|
}
|