Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / rcar-du / rcar_lvds.h
blob222ec0e60785ca31901d0a14cf8ce9ca89860cb3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * rcar_lvds.h -- R-Car LVDS Encoder
5 * Copyright (C) 2013-2018 Renesas Electronics Corporation
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 */
10 #ifndef __RCAR_LVDS_H__
11 #define __RCAR_LVDS_H__
13 struct drm_bridge;
15 #if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
16 int rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq);
17 void rcar_lvds_clk_disable(struct drm_bridge *bridge);
18 bool rcar_lvds_dual_link(struct drm_bridge *bridge);
19 #else
20 static inline int rcar_lvds_clk_enable(struct drm_bridge *bridge,
21 unsigned long freq)
23 return -ENOSYS;
25 static inline void rcar_lvds_clk_disable(struct drm_bridge *bridge) { }
26 static inline bool rcar_lvds_dual_link(struct drm_bridge *bridge)
28 return false;
30 #endif /* CONFIG_DRM_RCAR_LVDS */
32 #endif /* __RCAR_LVDS_H__ */