Commit e98499b4 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/powerplay: add data structure of bootup values

This patch adds data structures for bootup values.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarKevin Wang <Kevin1.Wang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent daddacf9
...@@ -38,13 +38,29 @@ struct smu_table { ...@@ -38,13 +38,29 @@ struct smu_table {
uint64_t mc_address; uint64_t mc_address;
void *cpu_addr; void *cpu_addr;
struct amdgpu_bo *bo; struct amdgpu_bo *bo;
};
struct smu_bios_boot_up_values
{
uint32_t revision;
uint32_t gfxclk;
uint32_t uclk;
uint32_t socclk;
uint32_t dcefclk;
uint16_t vddc;
uint16_t vddci;
uint16_t mvddc;
uint16_t vdd_gfx;
uint8_t cooling_id;
uint32_t pp_table_id;
}; };
struct smu_table_context struct smu_table_context
{ {
void *power_play_table; void *power_play_table;
uint32_t power_play_table_size; uint32_t power_play_table_size;
struct smu_bios_boot_up_values boot_values;
struct smu_table *tables; struct smu_table *tables;
uint32_t table_count; uint32_t table_count;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment