xref: /linux/drivers/gpu/drm/i915/display/intel_pch_refclk.h (revision e47a324d6f07c9ef252cfce1f14cfa5110cbed99)
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 intel_crtc_state;
12 struct intel_display;
13 
14 #ifdef I915
15 void lpt_program_iclkip(const struct intel_crtc_state *crtc_state);
16 void lpt_disable_iclkip(struct intel_display *display);
17 int lpt_get_iclkip(struct intel_display *display);
18 int lpt_iclkip(const struct intel_crtc_state *crtc_state);
19 
20 void intel_init_pch_refclk(struct intel_display *display);
21 void lpt_disable_clkout_dp(struct intel_display *display);
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 intel_display *display)
27 {
28 }
29 static inline int lpt_get_iclkip(struct intel_display *display)
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 intel_display *display)
38 {
39 }
40 static inline void lpt_disable_clkout_dp(struct intel_display *display)
41 {
42 }
43 #endif
44 
45 #endif
46