drm/amdgpu: add the common code to support mclk OD
authorEric Huang <JinHuiEric.Huang@amd.com>
Tue, 24 May 2016 19:11:17 +0000 (15:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:50:55 +0000 (14:50 -0400)
commitf2bdc05f773ea68d31e2d50b9e791b7c7dcd1dfa
treec96bdf08a1ad3d8c22a8475779996aa8cb869ff7
parent6bb6b2972d0affe1f86881d64c787627b916c17e
drm/amdgpu: add the common code to support mclk OD

This implements mclk OverDrive(OD) through sysfs.
The new entry pp_mclk_od is read/write. The value of input/output
is an integer of the overclocking percentage.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h