diff options
author | Eric Huang <JinHuiEric.Huang@amd.com> | 2015-08-26 16:52:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:17 -0500 |
commit | aabcb7c11e3d9d8a5c28fb5b3aa60ec1cec58e64 (patch) | |
tree | 0fc48b194bb650e9939a6d1318f74231141ce9a3 /drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | |
parent | 74785623db6889e6fffb5d2565a27fbeb9ddb390 (diff) | |
download | blackbird-obmc-linux-aabcb7c11e3d9d8a5c28fb5b3aa60ec1cec58e64.tar.gz blackbird-obmc-linux-aabcb7c11e3d9d8a5c28fb5b3aa60ec1cec58e64.zip |
drm/amd/powerplay: add Fiji DPM support.
This enabled DPM support for Fiji. DPM is dynamic
clock and voltage scaling.
v2: rename fiji_hwmgr_early_init to fiji_hwmgr_init
v3: (agd) fold in endian fix, additional function addition
Reviewed-by: Alex Deucher <alexander.deucher@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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c index 407b2e31e1a1..f243e40ed158 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c @@ -30,6 +30,8 @@ #include "cz_hwmgr.h" #include "tonga_hwmgr.h" +extern int fiji_hwmgr_init(struct pp_hwmgr *hwmgr); + int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle) { struct pp_hwmgr *hwmgr; @@ -59,6 +61,9 @@ int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle) case CHIP_TONGA: tonga_hwmgr_init(hwmgr); break; + case CHIP_FIJI: + fiji_hwmgr_init(hwmgr); + break; default: return -EINVAL; } |