Reanme intel_ddi_fdi_post_disable() to hsw_fdi_disable() and relocate it next to all the other code dealing with FDI_RX. intel_ddi.c has now been cleansed of FDI_RX. In order to avoid exposing intel_disable_ddi_buf() outside intel_ddi.c we can just open code the DDI_BUF_CTL write. The enable side already has all that stuff open coded so this actually is more symmetric. But we do need to remeber to bring the intel_wait_ddi_buf_idle() call over from inside intel_disable_ddi_buf(). Cc: Dave Airlie <airlied@redhat.com> Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211015071625.593-9-ville.syrjala@linux.intel.com Reviewed-by: Dave Airlie <airlied@redhat.com>
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_FDI_H_
|
|
#define _INTEL_FDI_H_
|
|
|
|
enum pipe;
|
|
struct drm_i915_private;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_encoder;
|
|
|
|
int intel_fdi_link_freq(struct drm_i915_private *i915,
|
|
const struct intel_crtc_state *pipe_config);
|
|
int ilk_fdi_compute_config(struct intel_crtc *intel_crtc,
|
|
struct intel_crtc_state *pipe_config);
|
|
void intel_fdi_normal_train(struct intel_crtc *crtc);
|
|
void ilk_fdi_disable(struct intel_crtc *crtc);
|
|
void ilk_fdi_pll_disable(struct intel_crtc *intel_crtc);
|
|
void ilk_fdi_pll_enable(const struct intel_crtc_state *crtc_state);
|
|
void intel_fdi_init_hook(struct drm_i915_private *dev_priv);
|
|
void hsw_fdi_link_train(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state);
|
|
void hsw_fdi_disable(struct intel_encoder *encoder);
|
|
void intel_fdi_pll_freq_update(struct drm_i915_private *i915);
|
|
|
|
void intel_fdi_link_train(struct intel_crtc *crtc,
|
|
const struct intel_crtc_state *crtc_state);
|
|
|
|
void assert_fdi_tx_enabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_tx_disabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_rx_enabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_rx_disabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_tx_pll_enabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_rx_pll_enabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
void assert_fdi_rx_pll_disabled(struct drm_i915_private *i915, enum pipe pipe);
|
|
|
|
#endif
|