From patchwork Mon Jun 29 11:22:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 6688481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FB9E9F380 for ; Mon, 29 Jun 2015 11:28:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A033720439 for ; Mon, 29 Jun 2015 11:28:14 +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 D23F2203DC for ; Mon, 29 Jun 2015 11:28:13 +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 1Z9XCK-0007wF-Vt; Mon, 29 Jun 2015 11:26:00 +0000 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9XC0-0007TZ-Hu for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2015 11:25:41 +0000 Received: by pdbci14 with SMTP id ci14so115364062pdb.2 for ; Mon, 29 Jun 2015 04:25:19 -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=ZYP5l8BbQsXulWwrhbve5lzRQ034ap0GV76+h0ZyPGs=; b=VZLobCMj6dUjlGtAr18yWME8sBfnoNQvTbvixAuI9j35aqADk9cyun+tANkNaBH98q J05ymXYTm9Lm2QJDRGtRyLgaoazemzkOj2MC66j6YbRqy6YWbvvOnJM3UAtA9Yq+9GW/ lcfPDb8KkL70laPqBryqKk3C0Y3/iep4qOyNzEMlnpbQ2RjCjjHHOdWHDXWNiIGBI1e3 zstLZzwJLMNAVPO8uI6W7+SahC1eAAjbKOKdGWrUKRollA43Nv/RzbzLxrMsAgc/jEAN zYqJ3YQJUHjGw3XrgHg/lnYO0d6bgDh87zjWmWqgTWRS7GDiDiz6dFKEvBWs7ymDMkrj 4WPg== X-Received: by 10.68.69.37 with SMTP id b5mr31313576pbu.35.1435577119166; Mon, 29 Jun 2015 04:25:19 -0700 (PDT) Received: from localhost ([115.115.225.206]) by mx.google.com with ESMTPSA id xv9sm41903352pbc.2.2015.06.29.04.25.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 04:25:16 -0700 (PDT) From: Sanchayan Maity To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v6 1/3] clk: clk-vf610: Add clock for Vybrid OCOTP controller Date: Mon, 29 Jun 2015 16:52:17 +0530 Message-Id: X-Mailer: git-send-email 2.4.4 In-Reply-To: References: <558A99FC.2070902@i2se.com> In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150629_042540_661064_A1B51024 X-CRM114-Status: GOOD ( 12.12 ) X-Spam-Score: -2.7 (--) Cc: stefan.wahren@i2se.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Sanchayan Maity , srinivas.kandagatla@linaro.org, kernel@pengutronix.de, maxime.ripard@free-electrons.com, shawn.guo@linaro.org 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=-4.7 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=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 Add clock support for Vybrid On-Chip One Time Programmable (OCOTP) controller. While the OCOTP block does not require explicit clock gating, for programming the OCOTP timing register the clock rate of ipg clock is required for timing calculations related to fuse and shadow register read sequence. We explicitly specify the ipg clock for OCOTP as a result. Signed-off-by: Sanchayan Maity --- drivers/clk/imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c index bff45ea..d1b1c95 100644 --- a/drivers/clk/imx/clk-vf610.c +++ b/drivers/clk/imx/clk-vf610.c @@ -387,6 +387,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) clk[VF610_CLK_SNVS] = imx_clk_gate2("snvs-rtc", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(7)); clk[VF610_CLK_DAP] = imx_clk_gate("dap", "platform_bus", CCM_CCSR, 24); + clk[VF610_CLK_OCOTP] = imx_clk_gate("ocotp", "ipg_bus", CCM_CCGR6, CCM_CCGRx_CGn(5)); 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 d197634..56c16aa 100644 --- a/include/dt-bindings/clock/vf610-clock.h +++ b/include/dt-bindings/clock/vf610-clock.h @@ -194,6 +194,7 @@ #define VF610_PLL7_BYPASS 181 #define VF610_CLK_SNVS 182 #define VF610_CLK_DAP 183 -#define VF610_CLK_END 184 +#define VF610_CLK_OCOTP 184 +#define VF610_CLK_END 185 #endif /* __DT_BINDINGS_CLOCK_VF610_H */