diff options
author | yanyang1 <young.yang@amd.com> | 2015-08-18 15:28:32 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:15 -0500 |
commit | c82baa28184356a75c0157129f88af42b2e7b695 (patch) | |
tree | 7a702571d210aa8eb1ff04363ba8bcd4d5894a35 /drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | |
parent | 1060029fae7c351351d7c2e9e345b6c57f515668 (diff) | |
download | op-kernel-dev-c82baa28184356a75c0157129f88af42b2e7b695.zip op-kernel-dev-c82baa28184356a75c0157129f88af42b2e7b695.tar.gz |
drm/amd/powerplay: add Tonga dpm support (v3)
This implements DPM for tonga. DPM handles dynamic
clock and voltage scaling.
v2: merge all the patches related with tonga dpm
v3: merge dpm force level fix, cgs display fix, spelling fix
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: yanyang1 <young.yang@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c index 5d1ba90..407b2e3 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c @@ -28,6 +28,7 @@ #include "power_state.h" #include "hwmgr.h" #include "cz_hwmgr.h" +#include "tonga_hwmgr.h" int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle) { @@ -53,6 +54,15 @@ int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle) case AMD_FAMILY_CZ: cz_hwmgr_init(hwmgr); break; + case AMD_FAMILY_VI: + switch (hwmgr->chip_id) { + case CHIP_TONGA: + tonga_hwmgr_init(hwmgr); + break; + default: + return -EINVAL; + } + break; default: return -EINVAL; } |