diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-05-27 19:25:54 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-02 23:13:24 -0400 |
commit | 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a (patch) | |
tree | ecd3af25454c7d0b9c84bc5a143ef1bc526e62f9 /drivers/gpu/drm/radeon/r600.c | |
parent | cb5fcbd540b438a5d311bd15dc910841d01ed140 (diff) |
drm/radeon/kms/pm: add support for SetVoltage cmd table (V2)
- This enables voltage adjustment on r6xx+ and certain
r5xx asics.
- Voltage drop support is already available for most
r1xx-r5xx asics.
V2: endian fix for voltage table.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 44e96a2ae25a..e14f59748e65 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -475,6 +475,12 @@ void r600_pm_init_profile(struct radeon_device *rdev) | |||
475 | 475 | ||
476 | void r600_pm_misc(struct radeon_device *rdev) | 476 | void r600_pm_misc(struct radeon_device *rdev) |
477 | { | 477 | { |
478 | int requested_index = rdev->pm.requested_power_state_index; | ||
479 | struct radeon_power_state *ps = &rdev->pm.power_state[requested_index]; | ||
480 | struct radeon_voltage *voltage = &ps->clock_info[0].voltage; | ||
481 | |||
482 | if ((voltage->type == VOLTAGE_SW) && voltage->voltage) | ||
483 | radeon_atom_set_voltage(rdev, voltage->voltage); | ||
478 | 484 | ||
479 | } | 485 | } |
480 | 486 | ||