xref: /linux/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h (revision e7d759f31ca295d589f7420719c311870bb3166f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * R-Car DSI Encoder
4  *
5  * Copyright (C) 2022 Renesas Electronics Corporation
6  *
7  * Contact: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
8  */
9 
10 #ifndef __RCAR_MIPI_DSI_H__
11 #define __RCAR_MIPI_DSI_H__
12 
13 struct drm_atomic_state;
14 struct drm_bridge;
15 
16 #if IS_ENABLED(CONFIG_DRM_RCAR_MIPI_DSI)
17 void rcar_mipi_dsi_pclk_enable(struct drm_bridge *bridge,
18 			       struct drm_atomic_state *state);
19 void rcar_mipi_dsi_pclk_disable(struct drm_bridge *bridge);
20 #else
21 static inline void rcar_mipi_dsi_pclk_enable(struct drm_bridge *bridge,
22 					     struct drm_atomic_state *state)
23 {
24 }
25 
26 static inline void rcar_mipi_dsi_pclk_disable(struct drm_bridge *bridge)
27 {
28 }
29 #endif /* CONFIG_DRM_RCAR_MIPI_DSI */
30 
31 #endif /* __RCAR_MIPI_DSI_H__ */
32