diff options
author | Po Ting Chen <robin.chen@amd.com> | 2022-02-08 00:20:53 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-02-23 14:22:03 -0500 |
commit | 3e6084aee08b108f5cc489be46c68ba56b13e52e (patch) | |
tree | ecec0531084a5d748f48c936ee4920f2ec366c5f /drivers/gpu/drm/amd/display/dc/dc_dp_types.h | |
parent | 2e6e14c9e47dac61e341d4b8128184e3e0eb3568 (diff) | |
download | linux-stable-3e6084aee08b108f5cc489be46c68ba56b13e52e.tar.gz linux-stable-3e6084aee08b108f5cc489be46c68ba56b13e52e.tar.bz2 linux-stable-3e6084aee08b108f5cc489be46c68ba56b13e52e.zip |
drm/amd/display: Refactor PSR DPCD caps detection
[Why]
To move the PSR DPCD caps detection into detect_edp_sink_caps()
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Po Ting Chen <robin.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_dp_types.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_dp_types.h b/drivers/gpu/drm/amd/display/dc/dc_dp_types.h index 772084406795..aa35cf008b73 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_dp_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_dp_types.h @@ -1068,4 +1068,33 @@ union dp_128b_132b_training_aux_rd_interval { uint8_t raw; }; +union edp_alpm_caps { + struct { + uint8_t AUX_WAKE_ALPM_CAP :1; + uint8_t PM_STATE_2A_SUPPORT :1; + uint8_t AUX_LESS_ALPM_CAP :1; + uint8_t RESERVED :5; + } bits; + uint8_t raw; +}; + +union edp_psr_dpcd_caps { + struct { + uint8_t LINK_TRAINING_ON_EXIT_NOT_REQUIRED :1; + uint8_t PSR_SETUP_TIME :3; + uint8_t Y_COORDINATE_REQUIRED :1; + uint8_t SU_GRANULARITY_REQUIRED :1; + uint8_t FRAME_SYNC_IS_NOT_NEEDED_FOR_SU :1; + uint8_t RESERVED :1; + } bits; + uint8_t raw; +}; + +struct edp_psr_info { + uint8_t psr_version; + union edp_psr_dpcd_caps psr_dpcd_caps; + uint8_t psr2_su_y_granularity_cap; + uint8_t force_psrsu_cap; +}; + #endif /* DC_DP_TYPES_H */ |