diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-08-18 13:11:09 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-08-20 10:29:00 +0300 |
commit | 63aef47b3eb52447716b2f2cf69eaca338e3576e (patch) | |
tree | 08f1ab157e06f38b51d174100c2428ba703b3e2c /drivers/gpu/drm/i915/display/intel_fdi.c | |
parent | 3c6a4a02c92af14a0325ede88bdbccc0ccd19241 (diff) | |
download | lwn-63aef47b3eb52447716b2f2cf69eaca338e3576e.tar.gz lwn-63aef47b3eb52447716b2f2cf69eaca338e3576e.zip |
drm/i915/fdi: move intel_fdi_link_freq() to intel_fdi.[ch]
There's no performance reason to have it as static inline; move it out
of intel_display_types.h to reduce clutter and dependency on i915_drv.h.
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/8c9bb23d92878deb1ecc75427ec6648bd3505816.1629281426.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fdi.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_fdi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fdi.c b/drivers/gpu/drm/i915/display/intel_fdi.c index e10b9cd8e86e..970a57369b05 100644 --- a/drivers/gpu/drm/i915/display/intel_fdi.c +++ b/drivers/gpu/drm/i915/display/intel_fdi.c @@ -95,6 +95,15 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe, } } +u32 intel_fdi_link_freq(struct drm_i915_private *i915, + const struct intel_crtc_state *pipe_config) +{ + if (HAS_DDI(i915)) + return pipe_config->port_clock; /* SPLL */ + else + return i915->fdi_pll_freq; +} + int ilk_fdi_compute_config(struct intel_crtc *crtc, struct intel_crtc_state *pipe_config) { |