drm/amdgpu: Add USBC PD FW load to PSP 11
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 19 Dec 2019 18:06:32 +0000 (13:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:33:16 +0000 (00:33 -0500)
commit0dc93fd117405c2e87d314b1b7b7a3fac8898eaa
treee0e6518e25eeb346ff6ef4d2a2bbe504365a392b
parent95860efc447c3f990cce4c9f612dc9bc5a969e82
drm/amdgpu: Add USBC PD FW load to PSP 11

Add the programming sequence.

v2:
Change donwload wait loop to more efficient.
Move C2PMSG_CMD_GFX_USB_PD_FW_VER defintion

v3: Fix lack of loop counter increment typo

v4: Remove superflous status reg read

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c