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 |
23 | static inline void lpt_program_iclkip(const struct intel_crtc_state *crtc_state) |
24 | { |
25 | } |
26 | static inline void lpt_disable_iclkip(struct drm_i915_private *dev_priv) |
27 | { |
28 | } |
29 | static inline int lpt_get_iclkip(struct drm_i915_private *dev_priv) |
30 | { |
31 | return 0; |
32 | } |
33 | static inline int lpt_iclkip(const struct intel_crtc_state *crtc_state) |
34 | { |
35 | return 0; |
36 | } |
37 | static inline void intel_init_pch_refclk(struct drm_i915_private *dev_priv) |
38 | { |
39 | } |
40 | static inline void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv) |
41 | { |
42 | } |
43 | #endif |
44 | |
45 | #endif |
46 | |