drm/amdgpu/powerplay: add renoir funcs to support dc
authorHersen Wu <hersenxs.wu@amd.com>
Wed, 18 Sep 2019 13:53:30 +0000 (09:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:50:55 +0000 (15:50 -0400)
commit7bbdbe405965dc4998996bdea571a5b9a1dd3d16
tree68213315fd0bb01ff3643ece0a4dab5bc2b38480
parent5bcc92407cf0d6e8d4c1b333b0accb6eec1b3f73
drm/amdgpu/powerplay: add renoir funcs to support dc

there are two paths for renoir dc access smu.
one dc access smu directly using bios smc
interface: set disply, dprefclk, etc.
another goes through pplib for get dpm clock
table and set watermmark.

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/renoir_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c