]> git.kernelconcepts.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>
Wed, 20 Aug 2014 08:06:41 +0000 (10: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 6c429b1b542de04f0c950bb3f9cd4c9ec6915946..6163c50b08d3217f0dc0319a1fd646afc828b405 100644 (file)
@@ -373,6 +373,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]);