]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MLK-9833-1 ARM: imx6sx: only set can clock parent when M4 disabled
authorDong Aisheng <b29396@freescale.com>
Tue, 11 Nov 2014 13:04:07 +0000 (21:04 +0800)
committerDong Aisheng <b29396@freescale.com>
Wed, 21 Jan 2015 10:23:34 +0000 (18:23 +0800)
Since CAN device is allocated to run on M4 and handled by M4 if M4 is enabled,
so we do not set CAN parent clock when M4 is enabled.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit b41622a58d6e10e1be2618bf98fab6cc977d9985)

arch/arm/mach-imx/clk-imx6sx.c

index 6b3816edd3521308b512b7154c7368836a2a6c02..053ee04d3b3aa2120da5ba861bde9e62fae5dd87 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Freescale Semiconductor, Inc.
+ * Copyright (C) 2014-2015 Freescale Semiconductor, Inc.
  *
  * The code contained herein is licensed under the GNU General Public
  * License. You may obtain a copy of the GNU General Public License
@@ -638,9 +638,6 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node)
        /* Set parent clock for vadc */
        imx_clk_set_parent(clks[IMX6SX_CLK_VID_SEL], clks[IMX6SX_CLK_PLL3_USB_OTG]);
 
-       /* default parent of can_sel clock is invalid, manually set it here */
-       imx_clk_set_parent(clks[IMX6SX_CLK_CAN_SEL], clks[IMX6SX_CLK_PLL3_60M]);
-
        /* Update gpu clock from default 528M to 720M */
        imx_clk_set_parent(clks[IMX6SX_CLK_GPU_CORE_SEL], clks[IMX6SX_CLK_PLL3_PFD0]);
        imx_clk_set_parent(clks[IMX6SX_CLK_GPU_AXI_SEL], clks[IMX6SX_CLK_PLL3_PFD0]);
@@ -655,6 +652,9 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node)
        imx_clk_set_parent(clks[IMX6SX_CLK_QSPI1_SEL], clks[IMX6SX_CLK_PLL2_BUS]);
        imx_clk_set_parent(clks[IMX6SX_CLK_QSPI2_SEL], clks[IMX6SX_CLK_PLL2_BUS]);
 
+       if (!imx_src_is_m4_enabled())
+               /* default parent of can_sel clock is invalid, manually set it here */
+               imx_clk_set_parent(clks[IMX6SX_CLK_CAN_SEL], clks[IMX6SX_CLK_PLL3_60M]);
        /*
         * Enable clocks only after both parent and rate are all initialized
         * as needed