cb90d90ca7
The DU driver uses the rcar_lvds_clk_enable() and rcar_lvds_clk_disable() functions enable or disable the pixel clock generated by the LVDS encoder, as it requires that clock for proper DU operation. Rename the functions by replacing "clk" with "pclk" to make it clearer that they related to the pixel clock. Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
38 lines
973 B
C
38 lines
973 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* R-Car LVDS Encoder
|
|
*
|
|
* Copyright (C) 2013-2018 Renesas Electronics Corporation
|
|
*
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
*/
|
|
|
|
#ifndef __RCAR_LVDS_H__
|
|
#define __RCAR_LVDS_H__
|
|
|
|
struct drm_bridge;
|
|
|
|
#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
|
|
int rcar_lvds_pclk_enable(struct drm_bridge *bridge, unsigned long freq);
|
|
void rcar_lvds_pclk_disable(struct drm_bridge *bridge);
|
|
bool rcar_lvds_dual_link(struct drm_bridge *bridge);
|
|
bool rcar_lvds_is_connected(struct drm_bridge *bridge);
|
|
#else
|
|
static inline int rcar_lvds_pclk_enable(struct drm_bridge *bridge,
|
|
unsigned long freq)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
static inline void rcar_lvds_pclk_disable(struct drm_bridge *bridge) { }
|
|
static inline bool rcar_lvds_dual_link(struct drm_bridge *bridge)
|
|
{
|
|
return false;
|
|
}
|
|
static inline bool rcar_lvds_is_connected(struct drm_bridge *bridge)
|
|
{
|
|
return false;
|
|
}
|
|
#endif /* CONFIG_DRM_RCAR_LVDS */
|
|
|
|
#endif /* __RCAR_LVDS_H__ */
|