From patchwork Fri Sep 26 13:13:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 4982251 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 46F6ABEEA6 for ; Fri, 26 Sep 2014 13:16:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 63E9D201E4 for ; Fri, 26 Sep 2014 13:16:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C64FA201C8 for ; Fri, 26 Sep 2014 13:16:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXVMG-0007ul-OH; Fri, 26 Sep 2014 13:14:48 +0000 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXVMC-0007kl-L5 for linux-arm-kernel@lists.infradead.org; Fri, 26 Sep 2014 13:14:45 +0000 Received: by mail-pd0-f172.google.com with SMTP id g10so998744pdj.3 for ; Fri, 26 Sep 2014 06:14:23 -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:in-reply-to:references :in-reply-to:references; bh=0PRtlbtrds2ePbDl1q9wCR1EE9+euUIO7qbNo6O3228=; b=RnQ0+xIrplYoBV7vpi62NUq4I1nW+/AcmE9ps8ALZawa8luMFKSkUtHKWgsitCfJ8F rn3CDF5dqkGvXHQAh7utVMGQTradAZ62WPaeRgpsn3bxG9QhlgJJz8/9GHHg226mWhj3 ZHiFE+6P34Lld3HCiGKAbmnOLKQCG8yL2iyLqgF5PN5YseLSPjfQLYXQMM4EnBW3rTIu CrU4eePN/tj+3xNGc4wBTT6dCKojJGr1rlkRKKqDyO9x6+ZrH37KSSNCMh12zxddrThU CL/s4LRoNC4/yf6uz8J3AetwiNqxs30LslYdZ40645NaBl1CdWO2g52SaQikwo/D4PPD kZhg== X-Received: by 10.70.129.33 with SMTP id nt1mr36423859pdb.166.1411737263200; Fri, 26 Sep 2014 06:14:23 -0700 (PDT) Received: from pallav-Inspiron-660s.toradex.int ([115.115.225.206]) by mx.google.com with ESMTPSA id pp8sm4990168pac.34.2014.09.26.06.14.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 06:14:22 -0700 (PDT) From: Sanchayan Maity To: kernel@pengutronix.de, a.zummo@towertech.it Subject: [PATCH 1/3] ARM: imx: clk-vf610: Add SNVS clock Date: Fri, 26 Sep 2014 18:43:59 +0530 Message-Id: <75fd6d21e5ebfbe918c9beeb15f361ca4e59f29b.1411736171.git.maitysanchayan@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140926_061444_739516_A4A54E73 X-CRM114-Status: GOOD ( 11.28 ) X-Spam-Score: -0.8 (/) Cc: linux@arm.linux.org.uk, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Sanchayan Maity , linux-arm-kernel@lists.infradead.org, b35083@freescale.com, shawn.guo@freescale.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 This patch adds the SNVS clock gating which is required by the SNVS peripheral. Signed-off-by: Sanchayan Maity --- arch/arm/mach-imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-vf610.c b/arch/arm/mach-imx/clk-vf610.c index a178184..2a3a759f 100644 --- a/arch/arm/mach-imx/clk-vf610.c +++ b/arch/arm/mach-imx/clk-vf610.c @@ -318,6 +318,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) clk[VF610_CLK_DMAMUX1] = imx_clk_gate2("dmamux1", "platform_bus", CCM_CCGR0, CCM_CCGRx_CGn(5)); clk[VF610_CLK_DMAMUX2] = imx_clk_gate2("dmamux2", "platform_bus", CCM_CCGR6, CCM_CCGRx_CGn(1)); clk[VF610_CLK_DMAMUX3] = imx_clk_gate2("dmamux3", "platform_bus", CCM_CCGR6, CCM_CCGRx_CGn(2)); + clk[VF610_CLK_SNVS] = imx_clk_gate2("snvs", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(7)); imx_check_clocks(clk, ARRAY_SIZE(clk)); diff --git a/include/dt-bindings/clock/vf610-clock.h b/include/dt-bindings/clock/vf610-clock.h index d6b56b2..358eab9 100644 --- a/include/dt-bindings/clock/vf610-clock.h +++ b/include/dt-bindings/clock/vf610-clock.h @@ -169,6 +169,7 @@ #define VF610_CLK_PLL7_MAIN 156 #define VF610_CLK_USBPHY0 157 #define VF610_CLK_USBPHY1 158 -#define VF610_CLK_END 159 +#define VF610_CLK_SNVS 159 +#define VF610_CLK_END 160 #endif /* __DT_BINDINGS_CLOCK_VF610_H */