drm/radeon/dpm/evergreen: restructure code
Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -120,18 +120,26 @@ int cypress_populate_smc_initial_state(struct radeon_device *rdev,
|
||||
RV770_SMC_STATETABLE *table);
|
||||
u32 cypress_calculate_burst_time(struct radeon_device *rdev,
|
||||
u32 engine_clock, u32 memory_clock);
|
||||
void cypress_notify_link_speed_change_before_state_change(struct radeon_device *rdev);
|
||||
int cypress_upload_sw_state(struct radeon_device *rdev);
|
||||
int cypress_upload_mc_reg_table(struct radeon_device *rdev);
|
||||
void cypress_program_memory_timing_parameters(struct radeon_device *rdev);
|
||||
void cypress_notify_link_speed_change_after_state_change(struct radeon_device *rdev);
|
||||
void cypress_notify_link_speed_change_before_state_change(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_new_state,
|
||||
struct radeon_ps *radeon_current_state);
|
||||
int cypress_upload_sw_state(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_new_state);
|
||||
int cypress_upload_mc_reg_table(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_new_state);
|
||||
void cypress_program_memory_timing_parameters(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_new_state);
|
||||
void cypress_notify_link_speed_change_after_state_change(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_new_state,
|
||||
struct radeon_ps *radeon_current_state);
|
||||
int cypress_construct_voltage_tables(struct radeon_device *rdev);
|
||||
int cypress_get_mvdd_configuration(struct radeon_device *rdev);
|
||||
void cypress_enable_spread_spectrum(struct radeon_device *rdev,
|
||||
bool enable);
|
||||
void cypress_enable_display_gap(struct radeon_device *rdev);
|
||||
int cypress_get_table_locations(struct radeon_device *rdev);
|
||||
int cypress_populate_mc_reg_table(struct radeon_device *rdev);
|
||||
int cypress_populate_mc_reg_table(struct radeon_device *rdev,
|
||||
struct radeon_ps *radeon_boot_state);
|
||||
void cypress_program_response_times(struct radeon_device *rdev);
|
||||
int cypress_notify_smc_display_change(struct radeon_device *rdev,
|
||||
bool has_display);
|
||||
|
Reference in New Issue
Block a user