aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-13 07:21:30 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-13 07:24:43 -0500
commitbd0f5cc3641cb76ae8fa2cc4924c29da157f8b2d (patch)
tree1dd04f07c8b9f471f9f5f9b0a3031535d5d91aea /drivers/video
parent3ed37d9aba486dece93e05d68f691b80ee100900 (diff)
OMAPDSS: fix TV-out issue with DSI PLL
Commit 0e8276ef75f5c7811b038d1d23b2b42c16efc5ac (OMAPDSS: DPI: always use DSI PLL if available) made dpi.c use DSI PLL for its clock. This works fine, for DPI, but has a nasty side effect on OMAP3: On OMAP3 the same clock is used for DISPC fclk and LCD output. Thus, after the above patch, DSI PLL is used for DISPC and LCD output. If TV-out is used, the TV-out needs DISPC. And if DPI is turned off, the DSI PLL is also turned off, disabling DISPC. For this to work, we'd need proper DSS internal clock handling, with refcounts, which is a non-trivial project. This patch fixes the issue for now by disabling the use of DSI PLL for DPI on OMAP3. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/dpi.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c
index 6cbcc81991a..4af136a04e5 100644
--- a/drivers/video/omap2/dss/dpi.c
+++ b/drivers/video/omap2/dss/dpi.c
@@ -51,6 +51,22 @@ static struct {
51 51
52static struct platform_device *dpi_get_dsidev(enum omap_channel channel) 52static struct platform_device *dpi_get_dsidev(enum omap_channel channel)
53{ 53{
54 /*
55 * XXX we can't currently use DSI PLL for DPI with OMAP3, as the DSI PLL
56 * would also be used for DISPC fclk. Meaning, when the DPI output is
57 * disabled, DISPC clock will be disabled, and TV out will stop.
58 */
59 switch (omapdss_get_version()) {
60 case OMAPDSS_VER_OMAP24xx:
61 case OMAPDSS_VER_OMAP34xx_ES1:
62 case OMAPDSS_VER_OMAP34xx_ES3:
63 case OMAPDSS_VER_OMAP3630:
64 case OMAPDSS_VER_AM35xx:
65 return NULL;
66 default:
67 break;
68 }
69
54 switch (channel) { 70 switch (channel) {
55 case OMAP_DSS_CHANNEL_LCD: 71 case OMAP_DSS_CHANNEL_LCD:
56 return dsi_get_dsidev_from_id(0); 72 return dsi_get_dsidev_from_id(0);