]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00162181-3 MX6Q/GPMI : decrease the DMA clock from 200M to 11M
authorHuang Shijie <b32955@freescale.com>
Wed, 7 Dec 2011 07:18:25 +0000 (15:18 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:35 +0000 (08:33 +0200)
This is just a workaroud for the DMA timeout.

Signed-off-by: Huang Shijie <b32955@freescale.com>
arch/arm/mach-mx6/clock.c

index 12a8d3583921596091ba2061b11f38327aa47c1f..67d86b3e067cebf55bb1a3f95dd2b0816f62183e 100644 (file)
@@ -4794,7 +4794,6 @@ static struct clk_lookup lookups[] = {
        _REGISTER_CLOCK("mxs-perfmon.2", "perfmon", perfmon2_clk),
 };
 
-
 static void clk_tree_init(void)
 
 {
@@ -4886,9 +4885,12 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
        clk_set_parent(&asrc_clk[1], &pll3_sw_clk);
        clk_set_rate(&asrc_clk[1], 7500000);
 
-       /* set the NAND to 11MHz. Too fast will cause dma timeout. */
+       /* set the GPMI clock to : 11MHz */
        clk_set_rate(&enfc_clk, enfc_clk.round_rate(&enfc_clk, 11000000));
 
+       /* set the DMA clock */
+       clk_set_rate(&usdhc3_clk, usdhc3_clk.round_rate(&usdhc3_clk, 11000000));
+
        mx6_cpu_op_init();
        cpu_op_tbl = get_cpu_op(&cpu_op_nr);