drm/amd/amdgpu: Move vcn4 fw_shared init to a single function
authorBokun Zhang <bokun.zhang@amd.com>
Thu, 30 Nov 2023 00:02:57 +0000 (19:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:20 +0000 (15:22 -0500)
commitd5e78f1c2611e22204490b679d962d8f51762969
tree48bd875ce8a63b54c4880ba7e234e6f90ef3e102
parentfd2ef5fa3556549c565f5b7a07776d899a8ed8b7
drm/amd/amdgpu: Move vcn4 fw_shared init to a single function

- Move VCN4's fw_shared initialization to a separated function.
  This way, the function can be reused at different locations.

Signed-off-by: Bokun Zhang <bokun.zhang@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c