Commit e4618c46 authored by Liviu Dudau (ARM)'s avatar Liviu Dudau (ARM) Committed by Russell King

drm/i2c: tda998x: increase the supported dotclock frequency to 165MHz for TDA19988

Spec sheet states that the TDA19988 supports up to 165MHz dotclock
speeds. Without this change modes higher than 1080p are un-attainable.
Signed-off-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent debd15ce
...@@ -878,7 +878,10 @@ tda998x_encoder_mode_fixup(struct drm_encoder *encoder, ...@@ -878,7 +878,10 @@ tda998x_encoder_mode_fixup(struct drm_encoder *encoder,
static int tda998x_connector_mode_valid(struct drm_connector *connector, static int tda998x_connector_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode) struct drm_display_mode *mode)
{ {
if (mode->clock > 150000) /* TDA19988 dotclock can go up to 165MHz */
struct tda998x_priv *priv = conn_to_tda998x_priv(connector);
if (mode->clock > ((priv->rev == TDA19988) ? 165000 : 150000))
return MODE_CLOCK_HIGH; return MODE_CLOCK_HIGH;
if (mode->htotal >= BIT(13)) if (mode->htotal >= BIT(13))
return MODE_BAD_HVALUE; return MODE_BAD_HVALUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment