aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
diff options
context:
space:
mode:
authorAndrey Grodzovsky <[email protected]>2019-12-19 18:06:32 +0000
committerAlex Deucher <[email protected]>2020-03-05 05:33:16 +0000
commit0dc93fd117405c2e87d314b1b7b7a3fac8898eaa (patch)
treee0e6518e25eeb346ff6ef4d2a2bbe504365a392b /drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
parentdrm/amdgpu: Add USBC PD FW load interface to PSP. (diff)
downloadkernel-0dc93fd117405c2e87d314b1b7b7a3fac8898eaa.tar.gz
kernel-0dc93fd117405c2e87d314b1b7b7a3fac8898eaa.zip
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 <[email protected]> Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h b/drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
index 36b65797434e..a44fd6060d5b 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
+++ b/drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h
@@ -31,6 +31,9 @@
#define GFX_CMD_RESERVED_MASK 0x7FF00000
#define GFX_CMD_RESPONSE_MASK 0x80000000
+/* USBC PD FW version retrieval command */
+#define C2PMSG_CMD_GFX_USB_PD_FW_VER 0x2000000
+
/* TEE Gfx Command IDs for the register interface.
* Command ID must be between 0x00010000 and 0x000F0000.
*/