aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-03-11 14:39:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:25:56 -0400
commitb83c4ab9caf001a0cefe9f9226a501a9e8ae3f08 (patch)
tree0e51757af32dbe3dc4b73fba577047bd9be6a085
parenta23eefa2f4615af91ea496ca5b55c9e7c6fa934c (diff)
drm/amd/powerplay: init hwmgr for ELM/BAF
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c5
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 5fb98aa2e719..2c6819904017 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@ -34,6 +34,7 @@
34extern int cz_hwmgr_init(struct pp_hwmgr *hwmgr); 34extern int cz_hwmgr_init(struct pp_hwmgr *hwmgr);
35extern int tonga_hwmgr_init(struct pp_hwmgr *hwmgr); 35extern int tonga_hwmgr_init(struct pp_hwmgr *hwmgr);
36extern int fiji_hwmgr_init(struct pp_hwmgr *hwmgr); 36extern int fiji_hwmgr_init(struct pp_hwmgr *hwmgr);
37extern int ellesemere_hwmgr_init(struct pp_hwmgr *hwmgr);
37 38
38int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle) 39int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
39{ 40{
@@ -67,6 +68,10 @@ int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
67 case CHIP_FIJI: 68 case CHIP_FIJI:
68 fiji_hwmgr_init(hwmgr); 69 fiji_hwmgr_init(hwmgr);
69 break; 70 break;
71 case CHIP_BAFFIN:
72 case CHIP_ELLESMERE:
73 ellesemere_hwmgr_init(hwmgr);
74 break;
70 default: 75 default:
71 return -EINVAL; 76 return -EINVAL;
72 } 77 }