From patchwork Mon Feb 5 14:22:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 10200465 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 324E460247 for ; Mon, 5 Feb 2018 14:23:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 218EE286BE for ; Mon, 5 Feb 2018 14:23:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15D352874F; Mon, 5 Feb 2018 14:23:52 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 96499286BE for ; Mon, 5 Feb 2018 14:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RwSqHnmcZz5BDrzgmuuRmeVJp76ZC54Zv2lIVo7f++o=; b=k+/uwRikRN7B0oZSjIbbwIAEEY qc7tDbLHmsvbsVdbiQKw5fHQil1X4mCneYbAWeytWQ6SqLahWPePjnv3Kl6wZAF/TaTh8YKWc1cYX ZgMbO8PEYNMZApyVjnIAmHhQRFkRi/f2o7VZcI4/M1dmbhh/8Gpx0PgnLOOen5jLvmco9Z8t8CQ0S PlpTcP4gmnR/uLD9rqbNV0EONft8TXMBZiXfR6KZAeawtuMSJxFL5afl5nwnmOSdosglja5lfl/C/ XFHHoaECzRlGKqXFuHp+kDYmw8J0rUZLrLPo9bDKaOv4T51NIGxd/JVes3WGGFCT1NQFCUqGnqaka z2ITyXZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eihgT-0001rg-LP; Mon, 05 Feb 2018 14:23:49 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eihg4-0001Jx-3F for linux-arm-kernel@lists.infradead.org; Mon, 05 Feb 2018 14:23:28 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180205142309epoutp04e35fceefa4f4e7aa9ab58b56698a7b83~Qc-l2Ymrb1852018520epoutp04Y; Mon, 5 Feb 2018 14:23:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180205142309epoutp04e35fceefa4f4e7aa9ab58b56698a7b83~Qc-l2Ymrb1852018520epoutp04Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1517840589; bh=8RDin1EVes1OpPy0APLuDn9Pz2x/oebaSkJDLC/6Qf8=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=roSQVVzzqJ+bdidiTi5HIL/U5gjWdKNEvs5fsiXK+JvbD0bCcSeC+8/USHwCIqtmW ROaF2la1TdEiwQTsGSAp7Lvj3kiQJjtrsN4h+W4TSVaG6WR/TX4WVECxfuIWVbZVcj h4Qxg49IjmNvVpLtUT8fZ9rHC+Hqj6Mux1ITcQzI= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180205142308epcas2p302b3af996f7b76b986269120c888fd73~Qc-k8CgxO2325123251epcas2p3F; Mon, 5 Feb 2018 14:23:08 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id AF.DB.04080.CC8687A5; Mon, 5 Feb 2018 23:23:08 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180205142308epcas2p376f8656f7e421f8474938de788cea8db~Qc-ksq_Ex3043630436epcas2p39; Mon, 5 Feb 2018 14:23:08 +0000 (GMT) X-AuditID: b6c32a48-9adff70000000ff0-96-5a7868ccaa66 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1A.70.03890.CC8687A5; Mon, 5 Feb 2018 23:23:08 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P3O00GOSL9R0R30@mmp2.samsung.com>; Mon, 05 Feb 2018 23:23:08 +0900 (KST) From: Sylwester Nawrocki To: linux-clk@vger.kernel.org Subject: [PATCH 2/3] clk: exynos5433: Allow audio subsystem clock rate propagation Date: Mon, 05 Feb 2018 15:22:29 +0100 Message-id: <20180205142230.9755-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180205142230.9755-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsWy7bCmue6ZjIoogwnX1C02zljPanH9y3NW i02Pr7FafO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cevYTzaQImaBGUwS z44+Y+1i5OAQFgiROHBTBaSGRUBVYtq8TjYQm1fASqL5Yg8LxDZ5ifcL7oPN4RSwltjd8ogd xBYCqpkyaRLLBEaeBYwMqxglUwuKc9Nzi40KjPJSy/WKE3OLS/PS9ZLzczcxAgNs22Gt/h2M j5fEH2IU4GBU4uEVAAaeEGtiWXFl7iFGCQ5mJRFep+vlUUK8KYmVValF+fFFpTmpxYcYpTlY lMR5+fOPRQoJpCeWpGanphakFsFkmTg4pRoYd4jMX72VZx3/piT9naJRptu27DR12/ZbdGZv yzTPa4r71bMCspn837p9bNN325W+bK2XSG106NR7O7boblr0X7BrzpvNj/vOrfT9tWyT4FzV D0VyUUEf/psaH+swvXhRqzJvWfUTXdN4lTN+ruITlVN0e5S/Xte6etZ2d8PRCukFy7aqmycV K7EUZyQaajEXFScCAHOH4iAsAgAA X-CMS-MailID: 20180205142308epcas2p376f8656f7e421f8474938de788cea8db X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180205142308epcas2p376f8656f7e421f8474938de788cea8db X-RootMTR: 20180205142308epcas2p376f8656f7e421f8474938de788cea8db References: <20180205142230.9755-1-s.nawrocki@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, cw00.choi@samsung.com, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP CLK_SET_RATE_PARENT flag is added to definitions of clocks on a path starting from CLK_SCLK_I2S1 up to AUD_PLL in order to allow setting required audio root clock frequency for the I2S1 block. This is now only done for the I2S1 block, related CMU_TOP, CMU_PERIC clock definitions are changed. Signed-off-by: Sylwester Nawrocki --- drivers/clk/samsung/clk-exynos5433.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 74b70ddab4d6..d74361736e64 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -246,14 +246,14 @@ static const struct samsung_fixed_rate_clock top_fixed_clks[] __initconst = { static const struct samsung_mux_clock top_mux_clks[] __initconst = { /* MUX_SEL_TOP0 */ - MUX(CLK_MOUT_AUD_PLL, "mout_aud_pll", mout_aud_pll_p, MUX_SEL_TOP0, - 4, 1), + MUX_F(CLK_MOUT_AUD_PLL, "mout_aud_pll", mout_aud_pll_p, MUX_SEL_TOP0, + 4, 1, CLK_SET_RATE_PARENT, 0), MUX(CLK_MOUT_ISP_PLL, "mout_isp_pll", mout_isp_pll_p, MUX_SEL_TOP0, 0, 1), /* MUX_SEL_TOP1 */ - MUX(CLK_MOUT_AUD_PLL_USER_T, "mout_aud_pll_user_t", - mout_aud_pll_user_p, MUX_SEL_TOP1, 12, 1), + MUX_F(CLK_MOUT_AUD_PLL_USER_T, "mout_aud_pll_user_t", + mout_aud_pll_user_p, MUX_SEL_TOP1, 12, 1, CLK_SET_RATE_PARENT, 0), MUX(CLK_MOUT_MPHY_PLL_USER, "mout_mphy_pll_user", mout_mphy_pll_user_p, MUX_SEL_TOP1, 8, 1), MUX(CLK_MOUT_MFC_PLL_USER, "mout_mfc_pll_user", mout_mfc_pll_user_p, @@ -370,8 +370,8 @@ static const struct samsung_mux_clock top_mux_clks[] __initconst = { MUX_SEL_TOP_PERIC1, 16, 1), MUX(CLK_MOUT_SCLK_SPDIF, "mout_sclk_spdif", mout_sclk_spdif_p, MUX_SEL_TOP_PERIC1, 12, 2), - MUX(CLK_MOUT_SCLK_AUDIO1, "mout_sclk_audio1", mout_sclk_audio1_p, - MUX_SEL_TOP_PERIC1, 4, 2), + MUX_F(CLK_MOUT_SCLK_AUDIO1, "mout_sclk_audio1", mout_sclk_audio1_p, + MUX_SEL_TOP_PERIC1, 4, 2, CLK_SET_RATE_PARENT, 0), MUX(CLK_MOUT_SCLK_AUDIO0, "mout_sclk_audio0", mout_sclk_audio0_p, MUX_SEL_TOP_PERIC1, 0, 2), @@ -524,12 +524,12 @@ static const struct samsung_div_clock top_div_clks[] __initconst = { DIV_TOP_PERIC2, 0, 4), /* DIV_TOP_PERIC3 */ - DIV(CLK_DIV_SCLK_I2S1, "div_sclk_i2s1", "sclk_audio1", - DIV_TOP_PERIC3, 16, 6), + DIV_F(CLK_DIV_SCLK_I2S1, "div_sclk_i2s1", "sclk_audio1", + DIV_TOP_PERIC3, 16, 6, CLK_SET_RATE_PARENT, 0), DIV(CLK_DIV_SCLK_PCM1, "div_sclk_pcm1", "sclk_audio1", DIV_TOP_PERIC3, 8, 8), - DIV(CLK_DIV_SCLK_AUDIO1, "div_sclk_audio1", "mout_sclk_audio1", - DIV_TOP_PERIC3, 4, 4), + DIV_F(CLK_DIV_SCLK_AUDIO1, "div_sclk_audio1", "mout_sclk_audio1", + DIV_TOP_PERIC3, 4, 4, CLK_SET_RATE_PARENT, 0), DIV(CLK_DIV_SCLK_AUDIO0, "div_sclk_audio0", "mout_sclk_audio0", DIV_TOP_PERIC3, 0, 4), @@ -693,7 +693,7 @@ static const struct samsung_gate_clock top_gate_clks[] __initconst = { GATE(CLK_SCLK_SLIMBUS, "sclk_slimbus", "mout_sclk_slimbus", MUX_ENABLE_TOP_PERIC1, 16, 0, 0), GATE(CLK_SCLK_AUDIO1, "sclk_audio1", "div_sclk_audio1", - MUX_ENABLE_TOP_PERIC1, 4, 0, 0), + MUX_ENABLE_TOP_PERIC1, 4, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_AUDIO0, "sclk_audio0", "div_sclk_audio0", MUX_ENABLE_TOP_PERIC1, 0, 0, 0), };