1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2021 Intel Corporation
4  */
5 
6 #ifndef _INTEL_PCH_REFCLK_H_
7 #define _INTEL_PCH_REFCLK_H_
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 struct intel_crtc_state;
13 
14 #ifdef I915
15 void lpt_program_iclkip(const struct intel_crtc_state *crtc_state);
16 void lpt_disable_iclkip(struct drm_i915_private *dev_priv);
17 int lpt_get_iclkip(struct drm_i915_private *dev_priv);
18 int lpt_iclkip(const struct intel_crtc_state *crtc_state);
19 
20 void intel_init_pch_refclk(struct drm_i915_private *dev_priv);
21 void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv);
22 #else
lpt_program_iclkip(const struct intel_crtc_state * crtc_state)23 static inline void lpt_program_iclkip(const struct intel_crtc_state *crtc_state)
24 {
25 }
lpt_disable_iclkip(struct drm_i915_private * dev_priv)26 static inline void lpt_disable_iclkip(struct drm_i915_private *dev_priv)
27 {
28 }
lpt_get_iclkip(struct drm_i915_private * dev_priv)29 static inline int lpt_get_iclkip(struct drm_i915_private *dev_priv)
30 {
31 	return 0;
32 }
lpt_iclkip(const struct intel_crtc_state * crtc_state)33 static inline int lpt_iclkip(const struct intel_crtc_state *crtc_state)
34 {
35 	return 0;
36 }
intel_init_pch_refclk(struct drm_i915_private * dev_priv)37 static inline void intel_init_pch_refclk(struct drm_i915_private *dev_priv)
38 {
39 }
lpt_disable_clkout_dp(struct drm_i915_private * dev_priv)40 static inline void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv)
41 {
42 }
43 #endif
44 
45 #endif
46