From: Tomi Valkeinen Date: Fri, 12 Oct 2012 13:27:28 +0000 (+0300) Subject: OMAPDSS: DSI: workaround for HSDiv problem X-Git-Tag: firefly_0821_release~3680^2~1437^2^2~61^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a98786caa18eaa8a5e61382a575f0b6c8e81c01;p=firefly-linux-kernel-4.4.55.git 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 --- 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;