linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration
@ 2014-04-02 13:48 Peter Ujfalusi
  2014-04-02 14:12 ` Tero Kristo
  0 siblings, 1 reply; 15+ messages in thread
From: Peter Ujfalusi @ 2014-04-02 13:48 UTC (permalink / raw)
  To: Tero Kristo, Mike Turquette; +Cc: Tony Lindgren, linux-omap, linux-kernel

ABE DPLL frequency need to be lowered from 361267200
to 180633600 to facilitate the ATL requironments.
The dpll_abe_m2x2_ck clock need to be set to double
of ABE DPLL rate in order to have correct clocks
for audio.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/clk/ti/clk-7xx.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
index f7e40734c819..19a55bf407dd 100644
--- a/drivers/clk/ti/clk-7xx.c
+++ b/drivers/clk/ti/clk-7xx.c
@@ -16,7 +16,7 @@
 #include <linux/clkdev.h>
 #include <linux/clk/ti.h>
 
-#define DRA7_DPLL_ABE_DEFFREQ				361267200
+#define DRA7_DPLL_ABE_DEFFREQ				180633600
 #define DRA7_DPLL_GMAC_DEFFREQ				1000000000
 
 
@@ -322,6 +322,11 @@ int __init dra7xx_dt_clk_init(void)
 	if (rc)
 		pr_err("%s: failed to configure ABE DPLL!\n", __func__);
 
+	dpll_ck = clk_get_sys(NULL, "dpll_abe_m2x2_ck");
+	rc = clk_set_rate(dpll_ck, DRA7_DPLL_ABE_DEFFREQ * 2);
+	if (rc)
+		pr_err("%s: failed to configure ABE DPLL m2x2!\n", __func__);
+
 	dpll_ck = clk_get_sys(NULL, "dpll_gmac_ck");
 	rc = clk_set_rate(dpll_ck, DRA7_DPLL_GMAC_DEFFREQ);
 	if (rc)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-07-31  6:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02 13:48 [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration Peter Ujfalusi
2014-04-02 14:12 ` Tero Kristo
2014-04-03  6:29   ` Peter Ujfalusi
2014-04-24  9:11     ` Peter Ujfalusi
2014-04-24 15:03       ` Tero Kristo
2014-05-06 13:39         ` Peter Ujfalusi
2014-05-19 12:29           ` Tero Kristo
2014-07-14 10:10           ` Peter Ujfalusi
2014-07-29  6:27             ` Mike Turquette
2014-07-29  8:23               ` Tero Kristo
2014-07-29 16:12                 ` Mike Turquette
2014-07-30  5:53                   ` Peter Ujfalusi
2014-07-30 12:27                     ` Tero Kristo
2014-07-30 22:42                       ` Mike Turquette
2014-07-31  6:37                         ` Tero Kristo

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).