From patchwork Sat Sep 28 00:44:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2957201 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 677609F244 for ; Sat, 28 Sep 2013 00:44:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 952AB20304 for ; Sat, 28 Sep 2013 00:44:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8E55202E8 for ; Sat, 28 Sep 2013 00:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754204Ab3I1AoH (ORCPT ); Fri, 27 Sep 2013 20:44:07 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:36184 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753875Ab3I1AoG (ORCPT ); Fri, 27 Sep 2013 20:44:06 -0400 Received: by mail-lb0-f171.google.com with SMTP id u14so2801143lbd.2 for ; Fri, 27 Sep 2013 17:44:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=f3m7vG3r+JUUkHdF+Jw98GkaNI+t+Uwgm71lfjNF9Lg=; b=YTuF+9YC92LduFu0OUPjq8FjmoW9WllLh0efRNW5ZyvEjscVCa5Pi6W396hoRvmLfE cg09jp19soc5p9g806V28dz39QkkGuU9xps2W4qBY1wL8u5QcgmijpVw8fC33fgTr/Uw nEbnFtAds75mcxdwujPZXUeJ7voMHRL4paet94zqDLkmrz3lGyA+CL74p9PP+I5zvLhV w9tVGRjVo9q3mZ2Iy5D5OMLPEgcMwa7MfelFXD/MVGt7bOiXXAvJMU6+tjO9ahp1zfYw /MNoCU8R1pqjWRlfz+98DgphrRKjer1rjpBgv+nnH4FyD9eJwcSxmCzW7EETl3AAqH1B 1t3g== X-Gm-Message-State: ALoCoQktJRSOYO9B0H4Xcy5+D1sxIBMRj5tYNd9dQCHbO0qDNnaJk11v/9ZrJhSt9Pw4+XFZhghF X-Received: by 10.112.72.229 with SMTP id g5mr11009621lbv.10.1380329044419; Fri, 27 Sep 2013 17:44:04 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-76-85-193.pppoe.mtu-net.ru. [91.76.85.193]) by mx.google.com with ESMTPSA id f17sm7481399lbo.12.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Sep 2013 17:44:03 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH 1/2] ARM: shmobile: r8a7778: add CAN clock support Date: Sat, 28 Sep 2013 04:44:09 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org References: <201309280441.52414.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201309280441.52414.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201309280444.09539.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 support for R8A7778 CAN0/1 clocks. Signed-off-by: Sergei Shtylyov --- arch/arm/mach-shmobile/clock-r8a7778.c | 5 +++++ 1 file changed, 5 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/mach-shmobile/clock-r8a7778.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/clock-r8a7778.c +++ renesas/arch/arm/mach-shmobile/clock-r8a7778.c @@ -117,6 +117,7 @@ static struct clk *main_clks[] = { enum { MSTP331, MSTP323, MSTP322, MSTP321, + MSTP316, MSTP315, MSTP311, MSTP310, MSTP309, MSTP308, MSTP307, MSTP114, @@ -133,6 +134,8 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP323] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 23, 0), /* SDHI0 */ [MSTP322] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 22, 0), /* SDHI1 */ [MSTP321] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 21, 0), /* SDHI2 */ + [MSTP316] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 16, 0), /* CAN0 */ + [MSTP315] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 15, 0), /* CAN1 */ [MSTP311] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 11, 0), /* SSI4 */ [MSTP310] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 10, 0), /* SSI5 */ [MSTP309] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 9, 0), /* SSI6 */ @@ -176,6 +179,8 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[MSTP323]), /* SDHI0 */ CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP322]), /* SDHI1 */ CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP321]), /* SDHI2 */ + CLKDEV_DEV_ID("rcar_can.0", &mstp_clks[MSTP316]), /* CAN0 */ + CLKDEV_DEV_ID("rcar_can.1", &mstp_clks[MSTP315]), /* CAN1 */ CLKDEV_DEV_ID("r8a777x-ether", &mstp_clks[MSTP114]), /* Ether */ CLKDEV_DEV_ID("r8a7778-vin.0", &mstp_clks[MSTP110]), /* VIN0 */ CLKDEV_DEV_ID("r8a7778-vin.1", &mstp_clks[MSTP109]), /* VIN1 */