summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx6sl.c
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2013-12-13 23:37:52 +0800
committerShawn Guo <shawn.guo@linaro.org>2013-12-31 09:36:34 +0800
commit4390e622602f11a1dc17e1749bdc6c88675d9659 (patch)
treedae43cf8eb01d1039cb32613373d355b1d03dd69 /arch/arm/mach-imx/clk-imx6sl.c
parentdf79bc9c274f2a511d350a99439591ea0415aea4 (diff)
downloadlinux-4390e622602f11a1dc17e1749bdc6c88675d9659.tar.gz
linux-4390e622602f11a1dc17e1749bdc6c88675d9659.tar.bz2
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);