mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00
drm/amdgpu/sdma5.2: Adjust the name string for firmware
This will make it easier to add new firmwares in the future. Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
eed1a5c742
commit
92ede25ece
1 changed files with 7 additions and 7 deletions
|
@ -138,28 +138,28 @@ static int sdma_v5_2_init_microcode(struct amdgpu_device *adev)
|
|||
|
||||
switch (adev->ip_versions[SDMA0_HWIP][0]) {
|
||||
case IP_VERSION(5, 2, 0):
|
||||
chip_name = "sienna_cichlid";
|
||||
chip_name = "sienna_cichlid_sdma";
|
||||
break;
|
||||
case IP_VERSION(5, 2, 2):
|
||||
chip_name = "navy_flounder";
|
||||
chip_name = "navy_flounder_sdma";
|
||||
break;
|
||||
case IP_VERSION(5, 2, 1):
|
||||
chip_name = "vangogh";
|
||||
chip_name = "vangogh_sdma";
|
||||
break;
|
||||
case IP_VERSION(5, 2, 4):
|
||||
chip_name = "dimgrey_cavefish";
|
||||
chip_name = "dimgrey_cavefish_sdma";
|
||||
break;
|
||||
case IP_VERSION(5, 2, 5):
|
||||
chip_name = "beige_goby";
|
||||
chip_name = "beige_goby_sdma";
|
||||
break;
|
||||
case IP_VERSION(5, 2, 3):
|
||||
chip_name = "yellow_carp";
|
||||
chip_name = "yellow_carp_sdma";
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
||||
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_sdma.bin", chip_name);
|
||||
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s.bin", chip_name);
|
||||
|
||||
err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev);
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Reference in a new issue