From patchwork Wed Jul 24 14:13:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 2832746 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 CA5A49F243 for ; Wed, 24 Jul 2013 13:51:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF2C1201E2 for ; Wed, 24 Jul 2013 13:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 437DB201E0 for ; Wed, 24 Jul 2013 13:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751373Ab3GXNvo (ORCPT ); Wed, 24 Jul 2013 09:51:44 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:21088 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064Ab3GXNvo (ORCPT ); Wed, 24 Jul 2013 09:51:44 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQG003RK162F9T0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 24 Jul 2013 22:51:43 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F3.B3.29708.EEBDFE15; Wed, 24 Jul 2013 22:51:43 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-28-51efdbee36ef Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F9.94.32250.EEBDFE15; Wed, 24 Jul 2013 22:51:42 +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 <0MQG007LX14I0H50@mmp1.samsung.com>; Wed, 24 Jul 2013 22:51:42 +0900 (KST) From: Rahul Sharma To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kgene.kim@samsung.com, mturquette@linaro.org, inki.dae@samsung.com, s.nawrocki@samsung.com, thomas.abraham@linaro.org, joshi@samsung.com, r.sh.open@gmail.com, Rahul Sharma Subject: [PATCH v3 2/5] clk/exynos5250: add mout_hdmi mux clock for hdmi Date: Wed, 24 Jul 2013 19:43:32 +0530 Message-id: <1374675215-27862-3-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1374675215-27862-1-git-send-email-rahul.sharma@samsung.com> References: <1374675215-27862-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42JZI2JSq/v+9vtAg63XWSwm3Z/AYvF91xd2 i94FV9ksNj2+xmox4/w+JounEy6yWSx8EW8xZdFhVovDb9pZLY7NWMLowOWxc9Zddo871/aw eWxeUu/Rt2UVo8fnTXIBrFFcNimpOZllqUX6dglcGbOm7WIvWCVYsfpvB2MD4xq+LkZODgkB E4mbl/azQ9hiEhfurWcDsYUEljJK3Gmqh6l5tHsqSxcjF1B8EaPEzgmXGCGc2UwSi2ddZgKp YhPQlZh98BkjiC0i4C0x+cxfdpAiZoFzjBKTJ51hBkkIC3hInG+ZB9bAIqAqcXXGGrB1vEDx B7dXsUKsU5TofjYBLM4p4CkxY953qJM8JCYe/MgKMlRCYBO7xPSn31khBglIfJt8COg+DqCE rMSmA8wQcyQlDq64wTKBUXgBI8MqRtHUguSC4qT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V1tztGv/2r/Re+vn/ln7wRjiQ1nFqwVNwq8obMlmmlGmvdSN/1cs8yT+3b3 Oag8EZzw2pj/prKV2fnyshx9Cz3HD53/zC1bnJwkPiyctDD+1r9zcmq/J3L2nL33bFqnEktx RqKhFnNRcSIAxcGeG/UCAAA= 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=-6.9 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 hdmi driver needs to change the parent of hdmi clock frequently between pixel clock and hdmiphy clock. hdmiphy is not stable after power on and for a short interval while changing the phy configuration. For this duration pixel clock is used to clock hdmi. This patch is exposing the mux for changing parent. Signed-off-by: Rahul Sharma --- Documentation/devicetree/bindings/clock/exynos5250-clock.txt | 8 ++++++++ drivers/clk/samsung/clk-exynos5250.c | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt b/Documentation/devicetree/bindings/clock/exynos5250-clock.txt index 6772971..488fbb2 100644 --- a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt +++ b/Documentation/devicetree/bindings/clock/exynos5250-clock.txt @@ -158,6 +158,14 @@ clock which they consume. mixer 343 hdmi 345 + + [Clock Muxes] + + Clock ID + ---------------------------- + mout_hdmi 1024 + + Example 1: An example of a clock controller node is listed below. clock: clock-controller@0x10010000 { diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 6f767c5..df44419 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -101,6 +101,9 @@ enum exynos5250_clks { tzpc2, tzpc3, tzpc4, tzpc5, tzpc6, tzpc7, tzpc8, tzpc9, hdmi_cec, mct, wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, + /* mux clocks */ + mout_hdmi = 1024, + nr_clks, }; @@ -232,7 +235,7 @@ struct samsung_mux_clock exynos5250_mux_clks[] __initdata = { MUX(none, "mout_fimd1", mout_group1_p, SRC_DISP1_0, 0, 4), MUX(none, "mout_mipi1", mout_group1_p, SRC_DISP1_0, 12, 4), MUX(none, "mout_dp", mout_group1_p, SRC_DISP1_0, 16, 4), - MUX(none, "mout_hdmi", mout_hdmi_p, SRC_DISP1_0, 20, 1), + MUX(mout_hdmi, "mout_hdmi", mout_hdmi_p, SRC_DISP1_0, 20, 1), MUX(none, "mout_audio0", mout_audio0_p, SRC_MAU, 0, 4), MUX(none, "mout_mmc0", mout_group1_p, SRC_FSYS, 0, 4), MUX(none, "mout_mmc1", mout_group1_p, SRC_FSYS, 4, 4),