* [PATCH 2/3] ARM: mx28evk: set a initial clock rate for saif
@ 2011-08-21 17:05 Dong Aisheng
0 siblings, 0 replies; only message in thread
From: Dong Aisheng @ 2011-08-21 17:05 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@ti.com>
---
Note this patch still needs another patch from Wolfram to work.
I send out it in this series as
[PATCH 3/3] arm: mxs: disable clock-gates when setting saif-clocks
As discussed with Wolfram, that patch may still have some later work
to do. However, we just send out it for testers to work first.
---
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 f589c6c..2a2db65 100644
--- a/arch/arm/mach-mxs/clock-mx28.c
+++ b/arch/arm/mach-mxs/clock-mx28.c
@@ -788,6 +788,15 @@ int __init mx28_clocks_init(void)
clk_set_parent(&saif0_clk, &pll0_clk);
clk_set_parent(&saif1_clk, &pll0_clk);
+ /*
+ * Set an initial clk rate for saif's internal logic to work properly,
+ * this is especially for the saif working on EXTMASTER mode that who
+ * uses other saif's BITCLK&LRCLK but it still needs a basic clk which
+ * should be bigger enough for its 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-21 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-21 17:05 [PATCH 2/3] ARM: mx28evk: set a initial clock rate for saif Dong Aisheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).