summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_fdi.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-01-14 14:13:47 +0300
committerJani Nikula <jani.nikula@intel.com>2021-01-16 01:18:17 +0300
commit777e687a0c6512179d7e333a633d4c6fa5046233 (patch)
treeb3d38dbdbdcf281ac99ed67ffacce21147eb7d3d /drivers/gpu/drm/i915/display/intel_fdi.h
parent8cf41f316e6497c043c161606959d39dcba265e6 (diff)
downloadlinux-777e687a0c6512179d7e333a633d4c6fa5046233.tar.xz
drm/i915: split fdi code out from intel_display.c
This just refactors out the fdi code to a separate file. Signed-off-by: Dave Airlie <airlied@redhat.com> [Jani: cleaned up intel_fdi.h a bit.] Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/f9d52c3d91f0973af308ede16e266fc9b753ecf9.1610622609.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fdi.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_fdi.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fdi.h b/drivers/gpu/drm/i915/display/intel_fdi.h
new file mode 100644
index 000000000000..a9cd21663eb8
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/intel_fdi.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2020 Intel Corporation
+ */
+
+#ifndef _INTEL_FDI_H_
+#define _INTEL_FDI_H_
+
+struct drm_i915_private;
+struct intel_crtc;
+struct intel_crtc_state;
+
+#define I915_DISPLAY_CONFIG_RETRY 1
+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);
+
+#endif