]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00180096 change NAND clock source to pll2_pfd_400M
authorAllen Xu <allen.xu@freescale.com>
Wed, 18 Apr 2012 02:15:27 +0000 (10:15 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:27 +0000 (08:34 +0200)
change clock source explicitly by calling set_parent() function

Signed-off-by: Allen Xu <allen.xu@freescale.com>
arch/arm/mach-mx6/clock.c

index 20cfc5511c30d24e63e23e6777fc7006806bb7d4..9fea5601c2a3f2c07c1e2cd948d16e7aae5f9e31 100644 (file)
@@ -3873,7 +3873,7 @@ static int _clk_enfc_set_rate(struct clk *clk, unsigned long rate)
 static struct clk enfc_clk = {
        __INIT_CLK_DEBUG(enfc_clk)
         .id = 0,
-        .parent = &pll2_pfd_400M,
+        .parent = &pll2_pfd_352M,
         .enable_reg = MXC_CCM_CCGR2,
         .enable_shift = MXC_CCM_CCGRx_CG7_OFFSET,
         .enable = _clk_enable,
@@ -5236,6 +5236,7 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
        clk_set_rate(&asrc_clk[1], 7500000);
 
        /* set the GPMI clock to default frequency : 20MHz */
+       clk_set_parent(&enfc_clk, &pll2_pfd_400M);
        clk_set_rate(&enfc_clk, enfc_clk.round_rate(&enfc_clk, 20000000));
 
        mx6_cpu_op_init();