summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx6sl.c
diff options
context:
space:
mode:
authorNicolin Chen2013-12-13 16:37:52 +0100
committerShawn Guo2013-12-31 02:36:34 +0100
commit4390e622602f11a1dc17e1749bdc6c88675d9659 (patch)
treedae43cf8eb01d1039cb32613373d355b1d03dd69 /arch/arm/mach-imx/clk-imx6sl.c
parentARM: imx: use __initconst for const init definition (diff)
downloadkernel-qcow2-linux-4390e622602f11a1dc17e1749bdc6c88675d9659.tar.gz
kernel-qcow2-linux-4390e622602f11a1dc17e1749bdc6c88675d9659.tar.xz
kernel-qcow2-linux-4390e622602f11a1dc17e1749bdc6c88675d9659.zip
ARM: imx6: Derive spdif clock from pll3_pfd3_454m
SPDIF can derive a TX clock for playback from one of its clock sources -- spdif root clock to match its supporting sample rates. So this patch set the spdif root clock's parent to pll3_pfd3_454m since the pll3_pfd3_454m can approximately meet its sample rate requirement. Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx6sl.c')
-rw-r--r--arch/arm/mach-imx/clk-imx6sl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk-imx6sl.c b/arch/arm/mach-imx/clk-imx6sl.c
index a747a7df175f..a222280e1095 100644
--- a/arch/arm/mach-imx/clk-imx6sl.c
+++ b/arch/arm/mach-imx/clk-imx6sl.c
@@ -261,6 +261,9 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
clk_prepare_enable(clks[IMX6SL_CLK_USBPHY2_GATE]);
}
+ /* Audio-related clocks configuration */
+ clk_set_parent(clks[IMX6SL_CLK_SPDIF0_SEL], clks[IMX6SL_CLK_PLL3_PFD3]);
+
np = of_find_compatible_node(NULL, NULL, "fsl,imx6sl-gpt");
base = of_iomap(np, 0);
WARN_ON(!base);