aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_link.h
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2020-04-21 22:01:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-05-05 13:11:49 -0400
commit1cfbbddead0abd8551ad2da5630cefea0a4289a6 (patch)
tree2998459a6268267e32214643ba69dd68698044dc /drivers/gpu/drm/amd/display/dc/dc_link.h
parentdrm/amd/display: Support FP16 pixel format (diff)
downloadlinux-dev-1cfbbddead0abd8551ad2da5630cefea0a4289a6.tar.xz
linux-dev-1cfbbddead0abd8551ad2da5630cefea0a4289a6.zip
drm/amd/display: add addition dc type to translate to dmub fw type
[Why] For a type like PSR version, it makes sense for most of the code to include a dc type, instead of having this a fw type define since this is a capability and type exposed by dc. Especially if it doesn't even need to communicate with the fw. The code that is packing the firmware command message should be the one who needs to translate the psr version into a command that the firmware understands. [How] Add a dc_psr_version enum. Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_link.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h
index eb5d910bffb6..859d254c0e3f 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_link.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_link.h
@@ -72,7 +72,7 @@ struct link_trace {
struct psr_settings {
bool psr_feature_enabled; // PSR is supported by sink
bool psr_allow_active; // PSR is currently active
- enum psr_version psr_version; // Internal PSR version, determined based on DPCD
+ enum dc_psr_version psr_version; // Internal PSR version, determined based on DPCD
/* These parameters are calculated in Driver,
* based on display timing and Sink capabilities.