Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344617
b: refs/heads/master
c: 6061675
h: refs/heads/master
i:
  344615: cdd4b43
v: v3
  • Loading branch information
Tomi Valkeinen committed Nov 5, 2012
1 parent 1530737 commit 23298db
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a3db406f5046dd14dff0e78cea0ba03efec3668
refs/heads/master: 6061675b3fc83d8d190b87b54f04f0c89f605149
27 changes: 27 additions & 0 deletions trunk/drivers/video/omap2/dss/dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,28 @@ void omapdss_dpi_set_data_lines(struct omap_dss_device *dssdev, int data_lines)
}
EXPORT_SYMBOL(omapdss_dpi_set_data_lines);

static int __init dpi_verify_dsi_pll(struct platform_device *dsidev)
{
int r;

/* do initial setup with the PLL to see if it is operational */

r = dsi_runtime_get(dsidev);
if (r)
return r;

r = dsi_pll_init(dsidev, 0, 1);
if (r) {
dsi_runtime_put(dsidev);
return r;
}

dsi_pll_uninit(dsidev, true);
dsi_runtime_put(dsidev);

return 0;
}

static int __init dpi_init_display(struct omap_dss_device *dssdev)
{
DSSDBG("init_display\n");
Expand All @@ -383,6 +405,11 @@ static int __init dpi_init_display(struct omap_dss_device *dssdev)
enum omap_dss_clk_source dispc_fclk_src =
dssdev->clocks.dispc.dispc_fclk_src;
dpi.dsidev = dpi_get_dsidev(dispc_fclk_src);

if (dpi_verify_dsi_pll(dpi.dsidev)) {
dpi.dsidev = NULL;
DSSWARN("DSI PLL not operational\n");
}
}

return 0;
Expand Down

0 comments on commit 23298db

Please sign in to comment.