18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * rcar_lvds.h  --  R-Car LVDS Encoder
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2013-2018 Renesas Electronics Corporation
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __RCAR_LVDS_H__
118c2ecf20Sopenharmony_ci#define __RCAR_LVDS_H__
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistruct drm_bridge;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
168c2ecf20Sopenharmony_ciint rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq);
178c2ecf20Sopenharmony_civoid rcar_lvds_clk_disable(struct drm_bridge *bridge);
188c2ecf20Sopenharmony_cibool rcar_lvds_dual_link(struct drm_bridge *bridge);
198c2ecf20Sopenharmony_ci#else
208c2ecf20Sopenharmony_cistatic inline int rcar_lvds_clk_enable(struct drm_bridge *bridge,
218c2ecf20Sopenharmony_ci				       unsigned long freq)
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci	return -ENOSYS;
248c2ecf20Sopenharmony_ci}
258c2ecf20Sopenharmony_cistatic inline void rcar_lvds_clk_disable(struct drm_bridge *bridge) { }
268c2ecf20Sopenharmony_cistatic inline bool rcar_lvds_dual_link(struct drm_bridge *bridge)
278c2ecf20Sopenharmony_ci{
288c2ecf20Sopenharmony_ci	return false;
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci#endif /* CONFIG_DRM_RCAR_LVDS */
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* __RCAR_LVDS_H__ */
33