drm/amdgpu: initilize picasso psp firmwares support
authorLikun Gao <Likun.Gao@amd.com>
Tue, 10 Jul 2018 12:12:38 +0000 (20:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 14:35:08 +0000 (09:35 -0500)
Same as raven for now.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c

index bd397d2916fb7a739576b6ef8a4755f179a63315..611c06d3600afcdd4d6a95e1c35ea915daf971a3 100644 (file)
@@ -56,6 +56,7 @@ static int psp_sw_init(void *handle)
                psp_v3_1_set_psp_funcs(psp);
                break;
        case CHIP_RAVEN:
+       case CHIP_PICASSO:
                psp_v10_0_set_psp_funcs(psp);
                break;
        case CHIP_VEGA20:
index 240dc8c858678abf00d048d11184b9fa6021bc79..eae3bf8b8463d249b326734b325e2ec08eee0ed4 100644 (file)
@@ -35,6 +35,7 @@
 #include "sdma0/sdma0_4_1_offset.h"
 
 MODULE_FIRMWARE("amdgpu/raven_asd.bin");
+MODULE_FIRMWARE("amdgpu/picasso_asd.bin");
 
 static int
 psp_v10_0_get_fw_type(struct amdgpu_firmware_info *ucode, enum psp_gfx_fw_type *type)
@@ -119,6 +120,9 @@ static int psp_v10_0_init_microcode(struct psp_context *psp)
        case CHIP_RAVEN:
                chip_name = "raven";
                break;
+       case CHIP_PICASSO:
+               chip_name = "picasso";
+               break;
        default: BUG();
        }