]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00162506 mx6q: set a correct clock for asrc
authorDong Aisheng <b29396@freescale.com>
Thu, 17 Nov 2011 11:24:54 +0000 (19:24 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:04 +0000 (14:10 +0200)
The ASRC mem to mem mode does not work without this patch.
Bacause 1.5Mhz clock rate is not available which will cause
clock setting fail, change to 7.5Mhz (the mininum one) to make
ASRC work properly.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
arch/arm/mach-mx6/clock.c

index 2180e3eafe2f848e5a8326e1fe944b5e79b89615..bc1599759a8bf6b8afda4364a36f8a13021f69b6 100644 (file)
@@ -4839,12 +4839,12 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
        clk_set_rate(&gpu3d_core_clk[0], 528000000);
 
        /*
-        * FIXME: asrc needs to use asrc_serial(spdif1) clock to do sample rate convertion,
-        * however we found it only works when set to 1.5M clock and the
-        * parent is pll3_sw_clk.
+        * FIXME: asrc needs to use asrc_serial(spdif1) clock to do sample
+        * rate convertion and this clock frequency can not be too high, set
+        * it to the minimum value 7.5Mhz to make asrc work properly.
         */
        clk_set_parent(&asrc_clk[1], &pll3_sw_clk);
-       clk_set_rate(&asrc_clk[1], 1500000);
+       clk_set_rate(&asrc_clk[1], 7500000);
 
        /* set the NAND to 11MHz. Too fast will cause dma timeout. */
        clk_set_rate(&enfc_clk, enfc_clk.round_rate(&enfc_clk, 11000000));