diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-04-12 14:49:23 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-04-12 19:09:42 -0400 |
commit | 8a83ec5ee824a6bd431b49bdb2428c8bf88f03eb (patch) | |
tree | 691858cf883ee87126b5f9376aa0cb840b80b3df /drivers/gpu/drm/radeon/evergreen.c | |
parent | b4df8be1048eb6c8c5a8bd1646f5989fd34b549e (diff) |
drm/radeon/kms: add voltage type to atom set voltage function
This is needed for setting voltages other than vddc.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index cff7144a4ccc..f2448170086e 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -122,7 +122,7 @@ void evergreen_pm_misc(struct radeon_device *rdev) | |||
122 | 122 | ||
123 | if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { | 123 | if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { |
124 | if (voltage->voltage != rdev->pm.current_vddc) { | 124 | if (voltage->voltage != rdev->pm.current_vddc) { |
125 | radeon_atom_set_voltage(rdev, voltage->voltage); | 125 | radeon_atom_set_voltage(rdev, voltage->voltage, SET_VOLTAGE_TYPE_ASIC_VDDC); |
126 | rdev->pm.current_vddc = voltage->voltage; | 126 | rdev->pm.current_vddc = voltage->voltage; |
127 | DRM_DEBUG("Setting: v: %d\n", voltage->voltage); | 127 | DRM_DEBUG("Setting: v: %d\n", voltage->voltage); |
128 | } | 128 | } |