diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-09-09 14:51:58 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-09-20 17:46:01 +0200 |
commit | 4e718a0e4053249c0ff5df60f8f3799fce1a1981 (patch) | |
tree | 633f0b13ef673dec3ed84bf5cda3b31272719bf4 /drivers/gpu/drm/i915/display/intel_dp.c | |
parent | drm/i915/dg2: add DG2+ TRANS_DDI_FUNC_CTL DP 2.0 128b/132b mode (diff) | |
download | linux-4e718a0e4053249c0ff5df60f8f3799fce1a1981.tar.xz linux-4e718a0e4053249c0ff5df60f8f3799fce1a1981.zip |
drm/i915/dp: add helper for checking for UHBR link rate
Helpful abstraction to avoid duplication.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/fe9a222ad900da797c989de9f7fa13928d2c9861.1631191763.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 3e7236b07773..7559911c140a 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -115,6 +115,12 @@ bool intel_dp_is_edp(struct intel_dp *intel_dp) static void intel_dp_unset_edid(struct intel_dp *intel_dp); static int intel_dp_dsc_compute_bpp(struct intel_dp *intel_dp, u8 dsc_max_bpc); +/* Is link rate UHBR and thus 128b/132b? */ +bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state) +{ + return crtc_state->port_clock >= 1000000; +} + /* update sink rates from dpcd */ static void intel_dp_set_sink_rates(struct intel_dp *intel_dp) { |