drm/bridge: dw-mipi-dsi: remove the pclk which can be managed in runtime pm
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com> Change-Id: Ib5287e452c0f40ab0bdaddf5a8f61f9d7abdb45a
This commit is contained in:
@@ -245,7 +245,6 @@ struct dw_mipi_dsi {
|
||||
void __iomem *base;
|
||||
|
||||
struct reset_control *apb_rst;
|
||||
struct clk *pclk;
|
||||
|
||||
unsigned int lane_mbps; /* per lane */
|
||||
u32 channel;
|
||||
@@ -877,12 +876,10 @@ static void dw_mipi_dsi_bridge_post_disable(struct drm_bridge *bridge)
|
||||
|
||||
if (dsi->slave) {
|
||||
dw_mipi_dsi_disable(dsi->slave);
|
||||
clk_disable_unprepare(dsi->slave->pclk);
|
||||
pm_runtime_put(dsi->slave->dev);
|
||||
}
|
||||
dw_mipi_dsi_disable(dsi);
|
||||
|
||||
clk_disable_unprepare(dsi->pclk);
|
||||
pm_runtime_put(dsi->dev);
|
||||
}
|
||||
|
||||
@@ -908,8 +905,6 @@ static void dw_mipi_dsi_mode_set(struct dw_mipi_dsi *dsi,
|
||||
int ret;
|
||||
u32 lanes = dw_mipi_dsi_get_lanes(dsi);
|
||||
|
||||
clk_prepare_enable(dsi->pclk);
|
||||
|
||||
if (dsi->apb_rst) {
|
||||
reset_control_assert(dsi->apb_rst);
|
||||
usleep_range(10, 20);
|
||||
@@ -1133,13 +1128,6 @@ __dw_mipi_dsi_probe(struct platform_device *pdev,
|
||||
dsi->base = plat_data->base;
|
||||
}
|
||||
|
||||
dsi->pclk = devm_clk_get(dev, "pclk");
|
||||
if (IS_ERR(dsi->pclk)) {
|
||||
ret = PTR_ERR(dsi->pclk);
|
||||
dev_err(dev, "Unable to get pclk: %d\n", ret);
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
/*
|
||||
* Note that the reset was not defined in the initial device tree, so
|
||||
* we have to be prepared for it not being found.
|
||||
@@ -1197,15 +1185,6 @@ void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_mipi_dsi_set_slave);
|
||||
|
||||
void dw_mipi_dsi_loader_protect(struct dw_mipi_dsi *dsi, bool on)
|
||||
{
|
||||
if (on)
|
||||
clk_prepare_enable(dsi->pclk);
|
||||
else
|
||||
clk_disable_unprepare(dsi->pclk);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_mipi_dsi_loader_protect);
|
||||
|
||||
/*
|
||||
* Probe/remove API, used from platforms based on the DRM bridge API.
|
||||
*/
|
||||
|
||||
@@ -67,6 +67,5 @@ int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder);
|
||||
void dw_mipi_dsi_unbind(struct dw_mipi_dsi *dsi);
|
||||
void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave);
|
||||
struct drm_connector *dw_mipi_dsi_get_connector(struct dw_mipi_dsi *dsi);
|
||||
void dw_mipi_dsi_loader_protect(struct dw_mipi_dsi *dsi, bool on);
|
||||
|
||||
#endif /* __DW_MIPI_DSI__ */
|
||||
|
||||
Reference in New Issue
Block a user