1 | /* SPDX-License-Identifier: MIT */ |
2 | /* |
3 | * Copyright © 2021 Intel Corporation |
4 | */ |
5 | |
6 | #ifndef __VLV_DSI_H__ |
7 | #define __VLV_DSI_H__ |
8 | |
9 | #include <linux/types.h> |
10 | |
11 | enum port; |
12 | struct drm_i915_private; |
13 | struct intel_dsi; |
14 | |
15 | #ifdef I915 |
16 | void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port); |
17 | enum mipi_dsi_pixel_format pixel_format_from_register_bits(u32 fmt); |
18 | void vlv_dsi_init(struct drm_i915_private *dev_priv); |
19 | #else |
20 | static inline void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port) |
21 | { |
22 | } |
23 | static inline enum mipi_dsi_pixel_format pixel_format_from_register_bits(u32 fmt) |
24 | { |
25 | return 0; |
26 | } |
27 | static inline void vlv_dsi_init(struct drm_i915_private *dev_priv) |
28 | { |
29 | } |
30 | #endif |
31 | |
32 | #endif /* __VLV_DSI_H__ */ |
33 | |