drm/amd/powerplay: implement pwm1 hwmon interface for SMU11 (v2)
authorChengming Gui <Jack.Gui@amd.com>
Thu, 24 Jan 2019 10:39:04 +0000 (18:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
commit008a9524cf6860dcd16780f50f738f3754c8b68a
treedb2d085476eda473dacb03857e985ecd99bbbb98
parent46814f51527b7bb0aae2d8582ac7a9da2941f1d2
drm/amd/powerplay: implement pwm1 hwmon interface for SMU11 (v2)

added main functions:
get_fan_speed_percent
set_fan_speed_percent.
added dependent functions:
smc_fan_control
set_fan_static_mode
get_fan_speed_percent

v2: fix coding style issue

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c