Thread (1 message) 1 message, 1 author, 2011-11-22
DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH v7 3/3] ARM: mx28evk: set a initial clock rate for saif

From: Dong Aisheng <hidden>
Date: 2011-11-22 15:54:25
Also in: alsa-devel
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Signed-off-by: Dong Aisheng <redacted>
Acked-by: Marek Vasut <redacted>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Wolfram Sang <redacted>
Cc: Uwe Kleine-K?nig <redacted>
Cc: Mark Brown <redacted>
Cc: Liam Girdwood <redacted>

---
Changes since v1:
 * make comments a little better.
   It's originally suggested by Uwe.
---
 arch/arm/mach-mxs/clock-mx28.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mxs/clock-mx28.c b/arch/arm/mach-mxs/clock-mx28.c
index c51fe85..b0c248d 100644
--- a/arch/arm/mach-mxs/clock-mx28.c
+++ b/arch/arm/mach-mxs/clock-mx28.c
@@ -808,6 +808,15 @@ int __init mx28_clocks_init(void)
 	clk_set_parent(&saif0_clk, &pll0_clk);
 	clk_set_parent(&saif1_clk, &pll0_clk);
 
+	/*
+	 * Set an initial clock rate for the saif internal logic to work
+	 * properly. This is important when working in EXTMASTER mode that
+	 * uses the other saif's BITCLK&LRCLK but it still needs a basic
+	 * clock which should be fast enough for the internal logic.
+	 */
+	clk_set_rate(&saif0_clk, 24000000);
+	clk_set_rate(&saif1_clk, 24000000);
+
 	clkdev_add_table(lookups, ARRAY_SIZE(lookups));
 
 	mxs_timer_init(&clk32k_clk, MX28_INT_TIMER0);
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help