From patchwork Fri Jun 21 21:21:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2764481 Return-Path: X-Original-To: patchwork-linux-arm@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 CC7A5C0AB1 for ; Fri, 21 Jun 2013 21:23:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3C02201D7 for ; Fri, 21 Jun 2013 21:23:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9BBD201D6 for ; Fri, 21 Jun 2013 21:23:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq8nJ-0007uY-TG; Fri, 21 Jun 2013 21:22:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq8nB-0005sW-Ky; Fri, 21 Jun 2013 21:22:49 +0000 Received: from mail-yh0-f43.google.com ([209.85.213.43]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq8n1-0005qs-3X for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2013 21:22:39 +0000 Received: by mail-yh0-f43.google.com with SMTP id b12so3441894yha.2 for ; Fri, 21 Jun 2013 14:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=1ZV2giIqDqeDdc0NESXbIs2gpyWe0EWW4tSYqU1tDP4=; b=NYiX0rXDHhq/9/KPe5GaS853CP8jISlGNZ3TIhceRj6qZUexJ/tMfMgvcsP0BHC3+O QJs31Ljn+uMd59e7FS+chFLvyKyFUsEfiOIo/i8HfyGU05a3GR1GBU9O9/O8GFKicslY glyhMTaN8xl7B4oRsGC1xrtfS78nTcevyFe7tXf05zrwsJljzyR44aJ+Fan8R21VgI57 h/1YiIRNbeDMzG5EI5HPh9o2a5lCvamn53ypa15ZnkfiH3BLs7p4tndLSCaY/wd6m6dL Kgo5//49VRFRQsJ+8U0TLPc0bE91DE7IFIVY7IEB32u5vqQlRH7ETbnjBEzN0Y8vd8pE jUVw== X-Received: by 10.236.66.39 with SMTP id g27mr8336050yhd.131.1371849733880; Fri, 21 Jun 2013 14:22:13 -0700 (PDT) Received: from localhost.localdomain ([189.101.181.91]) by mx.google.com with ESMTPSA id o32sm11224798yhi.5.2013.06.21.14.22.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 14:22:13 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH 1/2] clk: mxs: clk-imx28: Provide a dummy clock Date: Fri, 21 Jun 2013 18:21:59 -0300 Message-Id: <1371849720-14506-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130621_172239_204597_B147150F X-CRM114-Status: GOOD ( 10.33 ) X-Spam-Score: -2.7 (--) Cc: marex@denx.de, Fabio Estevam , mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, lauri.hintsala@bluegiga.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Fabio Estevam Sometimes it is useful to be able to pass a dummy clock for a driver. Add support for a dummy clock. Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/clock/imx28-clock.txt | 1 + drivers/clk/mxs/clk-imx28.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/imx28-clock.txt b/Documentation/devicetree/bindings/clock/imx28-clock.txt index e6587af..5a153ef 100644 --- a/Documentation/devicetree/bindings/clock/imx28-clock.txt +++ b/Documentation/devicetree/bindings/clock/imx28-clock.txt @@ -76,6 +76,7 @@ clocks and IDs. usb0_phy 62 usb1_phy 63 enet_out 64 + dummy 65 Examples: diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c index 4faf0af..6b55211 100644 --- a/drivers/clk/mxs/clk-imx28.c +++ b/drivers/clk/mxs/clk-imx28.c @@ -143,7 +143,7 @@ enum imx28_clk { emi_xtal, lcdif_div, etm_div, ptp, saif0_div, saif1_div, clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0, ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm, - fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, + fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, dummy, clk_max }; @@ -234,6 +234,7 @@ int __init mx28_clocks_init(void) clks[usb0_phy] = clk_register_gate(NULL, "usb0_phy", "pll0", 0, PLL0CTRL0, 18, 0, &mxs_lock); clks[usb1_phy] = clk_register_gate(NULL, "usb1_phy", "pll1", 0, PLL1CTRL0, 18, 0, &mxs_lock); clks[enet_out] = clk_register_gate(NULL, "enet_out", "pll2", 0, ENET, 18, 0, &mxs_lock); + clks[dummy] = mxs_clk_fixed("dummy", 0); for (i = 0; i < ARRAY_SIZE(clks); i++) if (IS_ERR(clks[i])) {