diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-05-27 17:01:42 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-03 13:13:31 +1000 |
commit | 84d88f4c92763f519b9e081cdd685a44de14f8c0 (patch) | |
tree | 834d7913e13edd5a58bafe4e6c6773f52c4a9ea9 /drivers/gpu/drm/radeon/radeon_combios.c | |
parent | 92645879d07a48897fe8888c2e37607aa1189cc9 (diff) | |
download | blackbird-op-linux-84d88f4c92763f519b9e081cdd685a44de14f8c0.tar.gz blackbird-op-linux-84d88f4c92763f519b9e081cdd685a44de14f8c0.zip |
drm/radeon/kms/pm: voltage fixes
- Enable GPIO voltage for non pm modes as well so resetting
the default voltage works.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_combios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_combios.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 7b5e10d3e9c9..102c744eaf5a 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -2454,7 +2454,12 @@ default_mode: rdev->pm.power_state[state_index].clock_info[0].mclk = rdev->clock.default_mclk; rdev->pm.power_state[state_index].clock_info[0].sclk = rdev->clock.default_sclk; rdev->pm.power_state[state_index].default_clock_mode = &rdev->pm.power_state[state_index].clock_info[0]; - rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE; + if ((state_index > 0) && + (rdev->pm.power_state[0].clock_info[0].voltage.type = VOLTAGE_GPIO)) + rdev->pm.power_state[state_index].clock_info[0].voltage = + rdev->pm.power_state[0].clock_info[0].voltage; + else + rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE; rdev->pm.power_state[state_index].pcie_lanes = 16; rdev->pm.power_state[state_index].flags = 0; rdev->pm.default_power_state_index = state_index; |