From patchwork Tue Sep 6 19:01:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rogerio Pimentel X-Patchwork-Id: 113658 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8CB56B6F64 for ; Wed, 7 Sep 2011 05:04:27 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R10wT-00011s-E6; Tue, 06 Sep 2011 19:04:18 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R10wS-0002yv-LV; Tue, 06 Sep 2011 19:04:16 +0000 Received: from am1ehsobe001.messaging.microsoft.com ([213.199.154.204] helo=AM1EHSOBE001.bigfish.com) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R10wO-0002xR-1F for linux-arm-kernel@lists.infradead.org; Tue, 06 Sep 2011 19:04:13 +0000 Received: from mail114-am1-R.bigfish.com (10.3.201.251) by AM1EHSOBE001.bigfish.com (10.3.204.21) with Microsoft SMTP Server id 14.1.225.22; Tue, 6 Sep 2011 19:04:09 +0000 Received: from mail114-am1 (localhost.localdomain [127.0.0.1]) by mail114-am1-R.bigfish.com (Postfix) with ESMTP id 8666611582EF; Tue, 6 Sep 2011 19:04:09 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail114-am1 (localhost.localdomain [127.0.0.1]) by mail114-am1 (MessageSwitch) id 1315335817348203_21825; Tue, 6 Sep 2011 19:03:37 +0000 (UTC) Received: from AM1EHSMHS013.bigfish.com (unknown [10.3.201.245]) by mail114-am1.bigfish.com (Postfix) with ESMTP id 9751E182809F; Tue, 6 Sep 2011 19:01:34 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS013.bigfish.com (10.3.207.151) with Microsoft SMTP Server (TLS) id 14.1.225.22; Tue, 6 Sep 2011 19:01:34 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.7; Tue, 6 Sep 2011 14:01:27 -0500 Received: from b19259.am.freescale.net ([10.29.240.183]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p86J1MgP008865; Tue, 6 Sep 2011 14:01:25 -0500 (CDT) From: Rogerio Pimentel To: Subject: [PATCH 2/4] ARM: mx53: Add clock for flexcan Date: Tue, 6 Sep 2011 16:01:34 -0300 Message-ID: <1315335696-20499-2-git-send-email-rogerio.pimentel@freescale.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1315335696-20499-1-git-send-email-rogerio.pimentel@freescale.com> References: <1315335696-20499-1-git-send-email-rogerio.pimentel@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110906_150412_420921_E671E379 X-CRM114-Status: GOOD ( 14.05 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [213.199.154.204 listed in list.dnswl.org] Cc: Rogerio Pimentel , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Adding clock for flexcan on i.MX53 Signed-off-by: Rogerio Pimentel --- arch/arm/mach-mx5/clock-mx51-mx53.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index afecd78..3ae8ac0 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c @@ -1422,6 +1422,12 @@ DEFINE_CLOCK(ipu_di1_clk, 0, MXC_CCM_CCGR6, MXC_CCM_CCGRx_CG6_OFFSET, DEFINE_CLOCK(pata_clk, 0, MXC_CCM_CCGR4, MXC_CCM_CCGRx_CG0_OFFSET, NULL, NULL, &ipg_clk, &spba_clk); +/* CAN */ +DEFINE_CLOCK(can1_clk, 0, MXC_CCM_CCGR6, MXC_CCM_CCGRx_CG10_OFFSET, + NULL, NULL, &ipg_clk, NULL); +DEFINE_CLOCK(can2_clk, 1, MXC_CCM_CCGR4, MXC_CCM_CCGRx_CG3_OFFSET, + NULL, NULL, &ipg_clk, NULL); + #define _REGISTER_CLOCK(d, n, c) \ { \ .dev_id = d, \ @@ -1513,6 +1519,8 @@ static struct clk_lookup mx53_lookups[] = { _REGISTER_CLOCK("imx-ssi.2", NULL, ssi3_clk) _REGISTER_CLOCK("imx-keypad", NULL, dummy_clk) _REGISTER_CLOCK("pata_imx", NULL, pata_clk) + _REGISTER_CLOCK("flexcan.0", NULL, can1_clk) + _REGISTER_CLOCK("flexcan.1", NULL, can2_clk) }; static void clk_tree_init(void)