From patchwork Mon Aug 26 09:13:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 2849440 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 867C89F271 for ; Mon, 26 Aug 2013 08:51:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BCED201F6 for ; Mon, 26 Aug 2013 08:51:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6147D201B2 for ; Mon, 26 Aug 2013 08:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907Ab3HZIvT (ORCPT ); Mon, 26 Aug 2013 04:51:19 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:43523 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756677Ab3HZIvS (ORCPT ); Mon, 26 Aug 2013 04:51:18 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MS400G2ZR9H1MR0@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 26 Aug 2013 17:51:17 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 86.5C.29948.5071B125; Mon, 26 Aug 2013 17:51:17 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-cf-521b1705fa63 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id ED.2F.05832.5071B125; Mon, 26 Aug 2013 17:51:17 +0900 (KST) Received: from chromeserver-PowerEdge-T410.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MS4003AKR90VJE0@mmp1.samsung.com>; Mon, 26 Aug 2013 17:51:17 +0900 (KST) From: Rahul Sharma To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: mturquette@linaro.org, kgene.kim@samsung.com, inki.dae@samsung.com, s.nawrocki@samsung.com, thomas.abraham@linaro.org, tomasz.figa@gmail.com, joshi@samsung.com, r.sh.open@gmail.com, Rahul Sharma Subject: [PATCH v3 5/5] clk/exynos5420: assign dout_pixel id to pixel clock divider Date: Mon, 26 Aug 2013 14:43:03 +0530 Message-id: <1377508383-15185-6-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1377508383-15185-1-git-send-email-rahul.sharma@samsung.com> References: <1377508383-15185-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42JZI2JSpcsqLh1ksK9L3GLS/QksFt93fWG3 6F1wlc1i0+NrrBYzzu9jsng64SKbxcIX8RZTFh1mtTj8pp3V4tiMJYwWq3b9YXTg9tg56y67 x51re9g8Ni+p9+jbsorR4/MmuQDWKC6blNSczLLUIn27BK6Ms08OMBec4qvoXHqapYGxj6eL kZNDQsBE4t+8L4wQtpjEhXvr2boYuTiEBJYySqz+MJcVpuj2vV4WEFtIYBGjxNOtjhD2bCaJ k29LQGw2AV2J2QefgQ0SEfCWmHzmLzvIIGaBp4wSd1b0s4EkhAVCJTpW/WYGsVkEVCVm9E8G i/MKeEi8aDzMBrFMUaL72QQwm1PAU+LynTusEMs8JO51tLGCDJUQ2MQucbNpOiPEIAGJb5MP AV3HAZSQldh0gBlijqTEwR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TbW/3Xlh39P3G/8o3pbPu LAtovC0QpPMwr7qhd+pGbk2XBSkFrsqvGNxnbov3v8amO7dMd85SU4+wMOmc3yaZ7st6zBRf mKnsv6Z/eunNhNjjP4TyU9743HJoWM2Rd/F/8sStRxerT7WUT8lK3OYffHnqyqyLYROvKLEU ZyQaajEXFScCAIGm7/74AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dout_pixel is a new ID allocated for pixel clock divider. It is queried in the driver to pass as the parent to hdmi clock while switching between parents. Signed-off-by: Rahul Sharma --- Documentation/devicetree/bindings/clock/exynos5420-clock.txt | 5 +++++ drivers/clk/samsung/clk-exynos5420.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/exynos5420-clock.txt b/Documentation/devicetree/bindings/clock/exynos5420-clock.txt index 6f16aa8..4c069bd 100644 --- a/Documentation/devicetree/bindings/clock/exynos5420-clock.txt +++ b/Documentation/devicetree/bindings/clock/exynos5420-clock.txt @@ -187,6 +187,11 @@ clock which they consume. mout_hdmi 1024 + Divider ID + ---------------------------- + + dout_pixel 2048 + Example 1: An example of a clock controller node is listed below. clock: clock-controller@0x10010000 { diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 5f9bc63..e55b223 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -143,6 +143,9 @@ enum exynos5420_clks { /* mux clocks */ mout_hdmi = 1024, + /* divider clocks */ + dout_pixel = 2048, + nr_clks, }; @@ -463,7 +466,7 @@ static struct samsung_div_clock exynos5420_div_clks[] __initdata = { DIV(none, "dout_fimd1", "mout_fimd1", DIV_DISP10, 0, 4), DIV(none, "dout_mipi1", "mout_mipi1", DIV_DISP10, 16, 8), DIV(none, "dout_dp1", "mout_dp1", DIV_DISP10, 24, 4), - DIV(none, "dout_hdmi_pixel", "mout_pixel", DIV_DISP10, 28, 4), + DIV(dout_pixel, "dout_hdmi_pixel", "mout_pixel", DIV_DISP10, 28, 4), /* Audio Block */ DIV(none, "dout_maudio0", "mout_maudio0", DIV_MAU, 20, 4),