drm/amd/powerplay: init hwmgr for ELM/BAF
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 11 Mar 2016 19:39:31 +0000 (14:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:25:56 +0000 (20:25 -0400)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c

index 5fb98aa2e7192bfa5e6cac26892cf4671cf4c0d9..2c681990401724cee00ca4d72d72567eef793173 100644 (file)
@@ -34,6 +34,7 @@
 extern int cz_hwmgr_init(struct pp_hwmgr *hwmgr);
 extern int tonga_hwmgr_init(struct pp_hwmgr *hwmgr);
 extern int fiji_hwmgr_init(struct pp_hwmgr *hwmgr);
+extern int ellesemere_hwmgr_init(struct pp_hwmgr *hwmgr);
 
 int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
 {
@@ -67,6 +68,10 @@ int hwmgr_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
                case CHIP_FIJI:
                        fiji_hwmgr_init(hwmgr);
                        break;
+               case CHIP_BAFFIN:
+               case CHIP_ELLESMERE:
+                       ellesemere_hwmgr_init(hwmgr);
+                       break;
                default:
                        return -EINVAL;
                }