mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
drm: rcar-du: lvds: Rename pclk enable/disable functions
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>
This commit is contained in:
parent
ef5be86cbf
commit
cb90d90ca7
@ -744,7 +744,7 @@ static void rcar_du_crtc_atomic_enable(struct drm_crtc *crtc,
|
||||
const struct drm_display_mode *mode =
|
||||
&crtc->state->adjusted_mode;
|
||||
|
||||
rcar_lvds_clk_enable(bridge, mode->clock * 1000);
|
||||
rcar_lvds_pclk_enable(bridge, mode->clock * 1000);
|
||||
}
|
||||
|
||||
rcar_du_crtc_start(rcrtc);
|
||||
@ -777,7 +777,7 @@ static void rcar_du_crtc_atomic_disable(struct drm_crtc *crtc,
|
||||
* Disable the LVDS clock output, see
|
||||
* rcar_du_crtc_atomic_enable().
|
||||
*/
|
||||
rcar_lvds_clk_disable(bridge);
|
||||
rcar_lvds_pclk_disable(bridge);
|
||||
}
|
||||
|
||||
spin_lock_irq(&crtc->dev->event_lock);
|
||||
|
@ -306,7 +306,7 @@ static void rcar_lvds_pll_setup_d3_e3(struct rcar_lvds *lvds, unsigned int freq)
|
||||
* Clock - D3/E3 only
|
||||
*/
|
||||
|
||||
int rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq)
|
||||
int rcar_lvds_pclk_enable(struct drm_bridge *bridge, unsigned long freq)
|
||||
{
|
||||
struct rcar_lvds *lvds = bridge_to_rcar_lvds(bridge);
|
||||
int ret;
|
||||
@ -324,9 +324,9 @@ int rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq)
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcar_lvds_clk_enable);
|
||||
EXPORT_SYMBOL_GPL(rcar_lvds_pclk_enable);
|
||||
|
||||
void rcar_lvds_clk_disable(struct drm_bridge *bridge)
|
||||
void rcar_lvds_pclk_disable(struct drm_bridge *bridge)
|
||||
{
|
||||
struct rcar_lvds *lvds = bridge_to_rcar_lvds(bridge);
|
||||
|
||||
@ -339,7 +339,7 @@ void rcar_lvds_clk_disable(struct drm_bridge *bridge)
|
||||
|
||||
clk_disable_unprepare(lvds->clocks.mod);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcar_lvds_clk_disable);
|
||||
EXPORT_SYMBOL_GPL(rcar_lvds_pclk_disable);
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Bridge
|
||||
|
@ -13,17 +13,17 @@
|
||||
struct drm_bridge;
|
||||
|
||||
#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
|
||||
int rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq);
|
||||
void rcar_lvds_clk_disable(struct drm_bridge *bridge);
|
||||
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_clk_enable(struct drm_bridge *bridge,
|
||||
unsigned long freq)
|
||||
static inline int rcar_lvds_pclk_enable(struct drm_bridge *bridge,
|
||||
unsigned long freq)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
static inline void rcar_lvds_clk_disable(struct drm_bridge *bridge) { }
|
||||
static inline void rcar_lvds_pclk_disable(struct drm_bridge *bridge) { }
|
||||
static inline bool rcar_lvds_dual_link(struct drm_bridge *bridge)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user