summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/psp_v14_0.h
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2023-06-13 14:28:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-02-15 01:16:07 +0300
commitf19cb916151d929db70e2ddc5929d713c1aff97e (patch)
tree5e624ede115432aed9852dfce2f426934a3be3bf /drivers/gpu/drm/amd/amdgpu/psp_v14_0.h
parentb7a9003445463bcd57850e8cd88aca0827e92837 (diff)
downloadlinux-f19cb916151d929db70e2ddc5929d713c1aff97e.tar.xz
drm/amdgpu: use spirom update wait_for helper for psp v14
Spirom update typically requires extremely long duration for command execution, and special helper function to wait for it's completion. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v14_0.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_v14_0.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.h b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.h
index cb7ee54529b4..dd18ba2cfad5 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.h
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.h
@@ -25,6 +25,8 @@
#include "amdgpu_psp.h"
+#define PSP_SPIROM_UPDATE_TIMEOUT 60000 /* 60s */
+
void psp_v14_0_set_psp_funcs(struct psp_context *psp);
#endif