drm/amdgpu: Set the IP blocks for vega10
authorKen Wang <Qingqing.Wang@amd.com>
Mon, 6 Mar 2017 19:53:16 +0000 (14:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:54:56 +0000 (23:54 -0400)
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index cf45fb902aed5727334a5b9389756138926e4063..2a5af6299fe43ceb10435f4b880a81c65c5e4119 100644 (file)
@@ -49,6 +49,7 @@
 #include "cik.h"
 #endif
 #include "vi.h"
+#include "soc15.h"
 #include "bif/bif_4_1_d.h"
 #include <linux/pci.h>
 #include <linux/firmware.h>
@@ -1434,6 +1435,13 @@ static int amdgpu_early_init(struct amdgpu_device *adev)
                        return r;
                break;
 #endif
+       case CHIP_VEGA10:
+               adev->family = AMDGPU_FAMILY_AI;
+
+               r = soc15_set_ip_blocks(adev);
+               if (r)
+                       return r;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;