diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-31 08:44:23 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-11-18 07:32:26 -0500 |
commit | d0f58bd3bba3877fb1af4664c4e33273d36f00e4 (patch) | |
tree | 83051d3197332e7cf6d4bd54dd266f1b5d9a1113 /drivers/video/omap2/dss/dpi.c | |
parent | 6e555e2752ea284bda55b0ee477a512e1525b84a (diff) |
OMAPDSS: remove struct dss_clock_info
Remove struct dss_clock_info, as it is not usable in a case where DSS
fclk comes from a dedicated PLL. Instead, just use the fclk rate in
place of dss_clock_info, as that is all that's needed.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dpi.c')
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index bd48cde53561..16acdddc94e3 100644 --- a/drivers/video/omap2/dss/dpi.c +++ b/drivers/video/omap2/dss/dpi.c | |||
@@ -117,7 +117,7 @@ struct dpi_clk_calc_ctx { | |||
117 | /* outputs */ | 117 | /* outputs */ |
118 | 118 | ||
119 | struct dsi_clock_info dsi_cinfo; | 119 | struct dsi_clock_info dsi_cinfo; |
120 | struct dss_clock_info dss_cinfo; | 120 | unsigned long long fck; |
121 | struct dispc_clock_info dispc_cinfo; | 121 | struct dispc_clock_info dispc_cinfo; |
122 | }; | 122 | }; |
123 | 123 | ||
@@ -184,12 +184,11 @@ static bool dpi_calc_pll_cb(int regn, int regm, unsigned long fint, | |||
184 | dpi_calc_hsdiv_cb, ctx); | 184 | dpi_calc_hsdiv_cb, ctx); |
185 | } | 185 | } |
186 | 186 | ||
187 | static bool dpi_calc_dss_cb(int fckd, unsigned long fck, void *data) | 187 | static bool dpi_calc_dss_cb(unsigned long fck, void *data) |
188 | { | 188 | { |
189 | struct dpi_clk_calc_ctx *ctx = data; | 189 | struct dpi_clk_calc_ctx *ctx = data; |
190 | 190 | ||
191 | ctx->dss_cinfo.fck = fck; | 191 | ctx->fck = fck; |
192 | ctx->dss_cinfo.fck_div = fckd; | ||
193 | 192 | ||
194 | return dispc_div_calc(fck, ctx->pck_min, ctx->pck_max, | 193 | return dispc_div_calc(fck, ctx->pck_min, ctx->pck_max, |
195 | dpi_calc_dispc_cb, ctx); | 194 | dpi_calc_dispc_cb, ctx); |
@@ -286,13 +285,13 @@ static int dpi_set_dispc_clk(unsigned long pck_req, unsigned long *fck, | |||
286 | if (!ok) | 285 | if (!ok) |
287 | return -EINVAL; | 286 | return -EINVAL; |
288 | 287 | ||
289 | r = dss_set_clock_div(&ctx.dss_cinfo); | 288 | r = dss_set_fck_rate(ctx.fck); |
290 | if (r) | 289 | if (r) |
291 | return r; | 290 | return r; |
292 | 291 | ||
293 | dpi.mgr_config.clock_info = ctx.dispc_cinfo; | 292 | dpi.mgr_config.clock_info = ctx.dispc_cinfo; |
294 | 293 | ||
295 | *fck = ctx.dss_cinfo.fck; | 294 | *fck = ctx.fck; |
296 | *lck_div = ctx.dispc_cinfo.lck_div; | 295 | *lck_div = ctx.dispc_cinfo.lck_div; |
297 | *pck_div = ctx.dispc_cinfo.pck_div; | 296 | *pck_div = ctx.dispc_cinfo.pck_div; |
298 | 297 | ||
@@ -495,7 +494,7 @@ static int dpi_check_timings(struct omap_dss_device *dssdev, | |||
495 | if (!ok) | 494 | if (!ok) |
496 | return -EINVAL; | 495 | return -EINVAL; |
497 | 496 | ||
498 | fck = ctx.dss_cinfo.fck; | 497 | fck = ctx.fck; |
499 | } | 498 | } |
500 | 499 | ||
501 | lck_div = ctx.dispc_cinfo.lck_div; | 500 | lck_div = ctx.dispc_cinfo.lck_div; |