]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00287081 [iMX6SL] - Make sure MMDC clocks are enabled at boot
authorRanjani Vaidyanathan <ra5478@freescale.com>
Fri, 8 Nov 2013 18:37:10 +0000 (12:37 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:06:39 +0000 (18:06 +0200)
Need to enable MMDC clocks to maintain the correct usecount, else
PLL2 can get disabled incorrectly thus hanging the system.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
arch/arm/mach-imx/clk-imx6sl.c

index 79a5872d113e4d8f3272feaece1525f8e515196c..627ca39f0cec6d8f3a431ee6aafe2af2fcda1f3e 100644 (file)
@@ -372,6 +372,15 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
        for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
                clk_prepare_enable(clks[clks_init_on[i]]);
 
+       /*
+        * Make sure the MMDC clk is enabled to maintain the correct usecount
+        * and enabling/disabling of parent PLLs.
+        */
+       ret = clk_prepare_enable(clks[IMX6SL_CLK_MMDC_ROOT]);
+       if (ret)
+               pr_warn("%s: failed to enable MMDC clock %d\n",
+                       __func__, ret);
+
        if (IS_ENABLED(CONFIG_USB_MXS_PHY)) {
                clk_prepare_enable(clks[IMX6SL_CLK_USBPHY1_GATE]);
                clk_prepare_enable(clks[IMX6SL_CLK_USBPHY2_GATE]);