diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-09-21 21:47:57 +0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-09-23 18:29:51 +0400 |
commit | 7102e23288f9fb6f1c53a7ed27707cf1b4f22227 (patch) | |
tree | 84844a72d66c015dc687b9a45e2601f277d6424a /drivers/gpu/drm/radeon/btc_dpm.h | |
parent | 142a4e9079e4c81a003bd966a6bf5ca7f466057a (diff) | |
download | linux-7102e23288f9fb6f1c53a7ed27707cf1b4f22227.tar.xz |
drm/radeon/dpm: fetch the max clk from voltage dep tables helper
This patch adds a helper function to fetch the max clock
from the voltage clock dependecy tables. Clocks above that
level tend to be unstable and will require additional driver
tweaks in order to work properly.
This patch implemented the helper function to fetch the max clocks
from the dependency tables. The following patches implement the
per-asic clock filtering.
See bug:
https://bugs.freedesktop.org/show_bug.cgi?id=68235
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/btc_dpm.h')
-rw-r--r-- | drivers/gpu/drm/radeon/btc_dpm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/btc_dpm.h b/drivers/gpu/drm/radeon/btc_dpm.h index 1a15e0e41950..3b6f12b7760b 100644 --- a/drivers/gpu/drm/radeon/btc_dpm.h +++ b/drivers/gpu/drm/radeon/btc_dpm.h @@ -46,6 +46,8 @@ void btc_adjust_clock_combinations(struct radeon_device *rdev, struct rv7xx_pl *pl); void btc_apply_voltage_dependency_rules(struct radeon_clock_voltage_dependency_table *table, u32 clock, u16 max_voltage, u16 *voltage); +void btc_get_max_clock_from_voltage_dependency_table(struct radeon_clock_voltage_dependency_table *table, + u32 *max_clock); void btc_apply_voltage_delta_rules(struct radeon_device *rdev, u16 max_vddc, u16 max_vddci, u16 *vddc, u16 *vddci); |