drm/amdgpu: add VEGAM UVD firmware support
authorLeo Liu <leo.liu@amd.com>
Fri, 10 Nov 2017 17:27:40 +0000 (12:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:58 +0000 (13:43 -0500)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

index 627542b..d8dd402 100644 (file)
@@ -66,6 +66,7 @@
 #define FIRMWARE_POLARIS10     "amdgpu/polaris10_uvd.bin"
 #define FIRMWARE_POLARIS11     "amdgpu/polaris11_uvd.bin"
 #define FIRMWARE_POLARIS12     "amdgpu/polaris12_uvd.bin"
+#define FIRMWARE_VEGAM         "amdgpu/vegam_uvd.bin"
 
 #define FIRMWARE_VEGA10                "amdgpu/vega10_uvd.bin"
 #define FIRMWARE_VEGA12                "amdgpu/vega12_uvd.bin"
@@ -109,6 +110,7 @@ MODULE_FIRMWARE(FIRMWARE_STONEY);
 MODULE_FIRMWARE(FIRMWARE_POLARIS10);
 MODULE_FIRMWARE(FIRMWARE_POLARIS11);
 MODULE_FIRMWARE(FIRMWARE_POLARIS12);
+MODULE_FIRMWARE(FIRMWARE_VEGAM);
 
 MODULE_FIRMWARE(FIRMWARE_VEGA10);
 MODULE_FIRMWARE(FIRMWARE_VEGA12);
@@ -172,6 +174,9 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
        case CHIP_VEGA12:
                fw_name = FIRMWARE_VEGA12;
                break;
+       case CHIP_VEGAM:
+               fw_name = FIRMWARE_VEGAM;
+               break;
        default:
                return -EINVAL;
        }