diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-02-19 17:14:43 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:29 -0400 |
commit | beb79f40b8dcc24153678c6ae31faf0fe50b9376 (patch) | |
tree | 01bcf82ea30656d5b0894b39df08ff52f017f53d /drivers/gpu/drm/radeon/radeon_atombios.c | |
parent | d719cef316d6377a7d6b5df495de118afb3a9fc2 (diff) | |
download | blackbird-op-linux-beb79f40b8dcc24153678c6ae31faf0fe50b9376.tar.gz blackbird-op-linux-beb79f40b8dcc24153678c6ae31faf0fe50b9376.zip |
drm/radeon: add atom get leakage vddc function
Required for DPM on SI.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 830c5580532d..0ac7294867a3 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -3062,6 +3062,13 @@ int radeon_atom_get_max_vddc(struct radeon_device *rdev, u8 voltage_type, return 0; } +int radeon_atom_get_leakage_vddc_based_on_leakage_idx(struct radeon_device *rdev, + u16 *voltage, + u16 leakage_idx) +{ + return radeon_atom_get_max_vddc(rdev, VOLTAGE_TYPE_VDDC, leakage_idx, voltage); +} + int radeon_atom_get_voltage_gpio_settings(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type, u32 *gpio_value, u32 *gpio_mask) |