From patchwork Thu Jul 25 05:07:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 2833206 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C1E44C0319 for ; Thu, 25 Jul 2013 04:45:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4C4A201EF for ; Thu, 25 Jul 2013 04:44:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBAE720182 for ; Thu, 25 Jul 2013 04:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751703Ab3GYEo6 (ORCPT ); Thu, 25 Jul 2013 00:44:58 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:15806 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751641Ab3GYEo5 (ORCPT ); Thu, 25 Jul 2013 00:44:57 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQH00JUM6IIIVH0@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 25 Jul 2013 13:44:56 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 18.D1.03969.84DA0F15; Thu, 25 Jul 2013 13:44:56 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-1a-51f0ad485852 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 72.86.31505.84DA0F15; Thu, 25 Jul 2013 13:44:56 +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 <0MQH004UK6IKUD00@mmp1.samsung.com>; Thu, 25 Jul 2013 13:44:56 +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 v4 3/6] clk/exynos5250: add mout_hdmi mux clock for hdmi Date: Thu, 25 Jul 2013 10:37:34 +0530 Message-id: <1374728857-4208-4-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1374728857-4208-1-git-send-email-rahul.sharma@samsung.com> References: <1374728857-4208-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42JZI2JSo+ux9kOgQc9sKYtJ9yewWHzf9YXd onfBVTaLTY+vsVrMOL+PyeLphItsFgtfxFtMWXSY1eLwm3ZWi2MzljA6cHnsnHWX3ePOtT1s HpuX1Hv0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXxpumR8wFqwQrpm/fytjAuIavi5GTQ0LA RGLy3lZmCFtM4sK99WwgtpDAUkaJfyvYYWo+/Z7D2MXIBRRfxChx/WorlDObSeJK3wkWkCo2 AV2J2QefMYLYIgLeEpPP/GUHKWIWOMcoMXnSGbAVwgIeEo39x8FWsAioSqx4swZsBa+Au8SC Sx+ZINYpSnQ/mwBWwwlUv2TLBXaIk9wlNs9dAjZUQmAbu0Tnt0ksEIMEJL5NPgRkcwAlZCU2 HYB6R1Li4IobLBMYhRcwMqx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f+mbPvx7T30SYd m25WXf/zb2/N5fLEFTeqTKexvQq/MFklqlzjkvCWvQ73n4dKFL7inhJjaB22LmLdt5WP2GxW G7G+4KzOv24/63DDgXbPl/GFB2eIfwk99Nd2lSL3z8/z1G7vXF29IfhfpuCM1W4b9t6r51Zi Kc5INNRiLipOBACHzr8Q9QIAAA== 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 bea503f..b3dfcad 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 344 + + [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),