From patchwork Wed Sep 6 10:36:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9940317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4DF7360224 for ; Wed, 6 Sep 2017 10:37:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 545BE1FF27 for ; Wed, 6 Sep 2017 10:37:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4918528B8E; Wed, 6 Sep 2017 10:37:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D3BA28B8D for ; Wed, 6 Sep 2017 10:37:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753079AbdIFKhm (ORCPT ); Wed, 6 Sep 2017 06:37:42 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:56151 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbdIFKhh (ORCPT ); Wed, 6 Sep 2017 06:37:37 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v86Ab2pa013674; Wed, 6 Sep 2017 05:37:02 -0500 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= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v86AavQ2013728; Wed, 6 Sep 2017 05:36:57 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 6 Sep 2017 05:36:56 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 6 Sep 2017 05:36:56 -0500 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v86Aasjh030121; Wed, 6 Sep 2017 05:36:54 -0500 From: Keerthy To: , CC: , , , , Subject: [PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value Date: Wed, 6 Sep 2017 16:06:39 +0530 Message-ID: <1504694199-32227-1-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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; }