diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2012-03-20 17:18:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-21 02:55:56 -0400 |
commit | 641998701b9e4265be5d2cc6cc645ffdf6cd9385 (patch) | |
tree | 27160e31262ac658b05639a684c14787249378df /drivers | |
parent | 24e1f7947b1b93e77a60c8a88cf46ee5ae8f258a (diff) |
drm/radeon/kms: disable PPLL0 on DCE6.1 when not in use
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 92263af38f56..a5c4e3fa6bb2 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c | |||
@@ -1646,6 +1646,8 @@ static void atombios_crtc_commit(struct drm_crtc *crtc) | |||
1646 | static void atombios_crtc_disable(struct drm_crtc *crtc) | 1646 | static void atombios_crtc_disable(struct drm_crtc *crtc) |
1647 | { | 1647 | { |
1648 | struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); | 1648 | struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); |
1649 | struct drm_device *dev = crtc->dev; | ||
1650 | struct radeon_device *rdev = dev->dev_private; | ||
1649 | struct radeon_atom_ss ss; | 1651 | struct radeon_atom_ss ss; |
1650 | 1652 | ||
1651 | atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); | 1653 | atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); |
@@ -1657,6 +1659,12 @@ static void atombios_crtc_disable(struct drm_crtc *crtc) | |||
1657 | atombios_crtc_program_pll(crtc, radeon_crtc->crtc_id, radeon_crtc->pll_id, | 1659 | atombios_crtc_program_pll(crtc, radeon_crtc->crtc_id, radeon_crtc->pll_id, |
1658 | 0, 0, ATOM_DISABLE, 0, 0, 0, 0, 0, false, &ss); | 1660 | 0, 0, ATOM_DISABLE, 0, 0, 0, 0, 0, false, &ss); |
1659 | break; | 1661 | break; |
1662 | case ATOM_PPLL0: | ||
1663 | /* disable the ppll */ | ||
1664 | if (ASIC_IS_DCE61(rdev)) | ||
1665 | atombios_crtc_program_pll(crtc, radeon_crtc->crtc_id, radeon_crtc->pll_id, | ||
1666 | 0, 0, ATOM_DISABLE, 0, 0, 0, 0, 0, false, &ss); | ||
1667 | break; | ||
1660 | default: | 1668 | default: |
1661 | break; | 1669 | break; |
1662 | } | 1670 | } |