summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i2c/ch7006_mode.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-08-06 00:57:08 +0400
committerBen Skeggs <bskeggs@redhat.com>2010-08-09 09:16:23 +0400
commitc93ebb4021ff1fdffe78be89a4bd30bc7cbc75e6 (patch)
treec5869fd94b3891c3f75f923d15b9dc2e554c4d68 /drivers/gpu/drm/i2c/ch7006_mode.c
parent1849719ef86e29def631a473e496507a4e052c06 (diff)
downloadlinux-c93ebb4021ff1fdffe78be89a4bd30bc7cbc75e6.tar.xz
drm/i2c/ch7006: Don't use POWER_LEVEL_FULL_POWER_OFF on early chip versions.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i2c/ch7006_mode.c')
-rw-r--r--drivers/gpu/drm/i2c/ch7006_mode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/ch7006_mode.c b/drivers/gpu/drm/i2c/ch7006_mode.c
index e447dfb63890..c860f24a5afc 100644
--- a/drivers/gpu/drm/i2c/ch7006_mode.c
+++ b/drivers/gpu/drm/i2c/ch7006_mode.c
@@ -316,7 +316,10 @@ void ch7006_setup_power_state(struct drm_encoder *encoder)
}
} else {
- *power |= bitfs(CH7006_POWER_LEVEL, FULL_POWER_OFF);
+ if (priv->chip_version >= 0x20)
+ *power |= bitfs(CH7006_POWER_LEVEL, FULL_POWER_OFF);
+ else
+ *power |= bitfs(CH7006_POWER_LEVEL, POWER_OFF);
}
}