summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/dss/dsi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-12 17:27:28 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-11-05 13:14:05 +0400
commit7a98786caa18eaa8a5e61382a575f0b6c8e81c01 (patch)
tree2f0e6d368d2f6a5bb570bac1d98a339ed1c99b95 /drivers/video/omap2/dss/dsi.c
parentb7f1fe541b01f6edaff0a5dd48027de6ac711ab6 (diff)
downloadlinux-7a98786caa18eaa8a5e61382a575f0b6c8e81c01.tar.xz
OMAPDSS: DSI: workaround for HSDiv problem
It looks like on many OMAP versions powers for both HSClk and HSDiv to be enabled to have a functional HSDiv. This patch fixes the issue by forcing both powers on. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r--drivers/video/omap2/dss/dsi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index ea5c6603a51d..e773f44b523d 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -1741,6 +1741,12 @@ int dsi_pll_init(struct platform_device *dsidev, bool enable_hsclk,
DSSDBG("PLL init\n");
+ /*
+ * It seems that on many OMAPs we need to enable both to have a
+ * functional HSDivider.
+ */
+ enable_hsclk = enable_hsdiv = true;
+
if (dsi->vdds_dsi_reg == NULL) {
struct regulator *vdds_dsi;