summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i2c
diff options
context:
space:
mode:
authorLiviu Dudau (ARM)2015-11-23 16:52:41 +0100
committerRussell King2015-12-03 16:48:17 +0100
commite4618c467d9ea600cc1412b32ad520f22b8b4833 (patch)
treedae2dec170b4cb20ff7d18620ac8ebadb5fc08bb /drivers/gpu/drm/i2c
parentdrm/i2c: tda998x: unregister the connector in the unbind function (diff)
downloadkernel-qcow2-linux-e4618c467d9ea600cc1412b32ad520f22b8b4833.tar.gz
kernel-qcow2-linux-e4618c467d9ea600cc1412b32ad520f22b8b4833.tar.xz
kernel-qcow2-linux-e4618c467d9ea600cc1412b32ad520f22b8b4833.zip
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: Liviu Dudau <Liviu.Dudau@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index cdbd83b95770..1ae779581630 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -878,7 +878,10 @@ tda998x_encoder_mode_fixup(struct drm_encoder *encoder,
static int tda998x_connector_mode_valid(struct drm_connector *connector,
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;
if (mode->htotal >= BIT(13))
return MODE_BAD_HVALUE;