Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1727327
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Keerthy <j-keerthy@ti.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value |
| Date | Wed, 06 Sep 2017 12:40:03 +0200 |
| Message-ID | <umFUv-oN-9@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1504694222; bh=HfGqBg069ykKMCwdGGX8IPfWblGSUvRkdJpJ4bvqdOM=; h=From:To:CC:Subject:Date; b=J1smEj+eJ7EMiFO8mfqYXc/czml1vPSfd6p/o+VFBEFYALM0N5eYwbAQD6ufwjQKx ZHaQmYK5fJnoVgwrlHbBtOorsWt2zXXY+x4hHCyLzmQO1vcO+Hk/YFNukkGZ5d4bUc v7/KnV0iV30mIdH6rqTR2BrK7dFvMB4Xgs+A0iJg= |
| X-Mailer | git-send-email 1.9.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Exclaimer-Md-Config | e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 36 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-kernel@vger.kernel.org>, <linux-clk@vger.kernel.org>, <linux-omap@vger.kernel.org>, <tony@atomide.com>, <j-keerthy@ti.com> |
| X-Original-Date | Wed, 6 Sep 2017 16:06:39 +0530 |
| X-Original-Message-ID | <1504694199-32227-1-git-send-email-j-keerthy@ti.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1727327 |
Show key headers only | View raw
Reset the mcasp3_ahclkx_mux to abe_24m_fclk. This is needed
in case of kexec where the reset values might be wiped off.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
drivers/clk/ti/clk-7xx.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
index 9fd6043..2c3a36c 100644
--- a/drivers/clk/ti/clk-7xx.c
+++ b/drivers/clk/ti/clk-7xx.c
@@ -312,7 +312,7 @@
int __init dra7xx_dt_clk_init(void)
{
int rc;
- struct clk *dpll_ck, *hdcp_ck;
+ struct clk *dpll_ck, *hdcp_ck, *mcasp3_ahclkx_ck, *abe_ck;
ti_dt_clocks_register(dra7xx_clks);
@@ -338,5 +338,12 @@ int __init dra7xx_dt_clk_init(void)
if (rc)
pr_err("%s: failed to set dss_deshdcp_clk\n", __func__);
+ mcasp3_ahclkx_ck = clk_get_sys(NULL, "mcasp3_ahclkx_mux");
+ abe_ck = clk_get_sys(NULL, "abe_24m_fclk");
+ rc = clk_set_parent(mcasp3_ahclkx_ck, abe_ck);
+ if (rc)
+ pr_err("%s: failed to set parent for mcasp3_ahclkx_mux\n",
+ __func__);
+
return rc;
}
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value Keerthy <j-keerthy@ti.com> - 2017-09-06 12:40 +0200
Re: [PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value Tero Kristo <t-kristo@ti.com> - 2017-09-06 13:50 +0200
Re: [PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value Keerthy <j-keerthy@ti.com> - 2017-09-06 15:40 +0200
csiph-web