From patchwork Sat Jun 20 14:15:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Reynes X-Patchwork-Id: 486991 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CFE061401CB for ; Sun, 21 Jun 2015 00:24:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HlSAuFgj; dkim-atps=neutral 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 1Z6JdD-0004fU-9s; Sat, 20 Jun 2015 14:20:27 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z6Jd4-0004eY-IN for linux-arm-kernel@bombadil.infradead.org; Sat, 20 Jun 2015 14:20:18 +0000 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z6Jd1-00060U-Ds for linux-arm-kernel@lists.infradead.org; Sat, 20 Jun 2015 14:20:16 +0000 Received: by wicgi11 with SMTP id gi11so40285721wic.0 for ; Sat, 20 Jun 2015 07:19:53 -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; bh=mxr5A42YanrB1msgpSqVrAehpk3CZuPyFhsOa0/MDRE=; b=HlSAuFgjYu6lajfzqZFEJb6TPZPYwHjuD3kieEDRPIep0ua1cWQZGn7nW0C7aceNLc lqL6Ee5sC6rkVYJjdRyZaiZT/vUNzPrbr2B5T17lhm23lzI+jJ9j0Lumf2J8+61PiEzT odxGm8KH569Pb8tGnxJn9cJ+qkXvguetZqyW4SqawsyWKwPM/jj6C9tjI/b6gRQePD1v iHRdDq8w1WtWUnVXw+4OX2/qZX2MO5dzAYoKFlNFiPKhyHWhBdQ70+Pt8Vi10GPodchh 5GU0f89u2B6mjJsYB94YnvVul6Lap8tPXiO3vaW6SiJlT43z3HvhpaWw+AN6w/ckh//3 kWng== X-Received: by 10.180.90.11 with SMTP id bs11mr16334412wib.52.1434809992975; Sat, 20 Jun 2015 07:19:52 -0700 (PDT) Received: from localhost.localdomain (bny93-7-88-161-33-221.fbx.proxad.net. [88.161.33.221]) by mx.google.com with ESMTPSA id p2sm5718326wix.11.2015.06.20.07.19.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Jun 2015 07:19:52 -0700 (PDT) From: Philippe Reynes To: a.zummo@towertech.it, alexandre.belloni@free-electrons.com, shawn.guo@linaro.org, kernel@pengutronix.de, linux@arm.linux.org.uk Subject: [PATCH v2 1/6] imx31: add a second rtc clock Date: Sat, 20 Jun 2015 16:15:27 +0200 Message-Id: <1434809732-8996-2-git-send-email-tremyfr@gmail.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1434809732-8996-1-git-send-email-tremyfr@gmail.com> References: <1434809732-8996-1-git-send-email-tremyfr@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150620_152015_502811_6379F4ED X-CRM114-Status: GOOD ( 10.39 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on casper.infradead.org summary: Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c05:0:0:0:22a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tremyfr[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Philippe Reynes X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org The mxc rtc driver needs two clock. It was defined only one clock, so we define the second clock. Signed-off-by: Philippe Reynes --- arch/arm/mach-imx/clk-imx31.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx31.c b/arch/arm/mach-imx/clk-imx31.c index 286ef42..480c54f 100644 --- a/arch/arm/mach-imx/clk-imx31.c +++ b/arch/arm/mach-imx/clk-imx31.c @@ -130,7 +130,8 @@ int __init mx31_clocks_init(unsigned long fref) clk_register_clkdev(clk[cspi3_gate], NULL, "imx31-cspi.2"); clk_register_clkdev(clk[pwm_gate], "pwm", NULL); clk_register_clkdev(clk[wdog_gate], NULL, "imx2-wdt.0"); - clk_register_clkdev(clk[rtc_gate], NULL, "imx21-rtc"); + clk_register_clkdev(clk[ckil], "rtc", "imx21-rtc"); + clk_register_clkdev(clk[rtc_gate], "ipg", "imx21-rtc"); clk_register_clkdev(clk[epit1_gate], "epit", NULL); clk_register_clkdev(clk[epit2_gate], "epit", NULL); clk_register_clkdev(clk[nfc], NULL, "imx27-nand.0");