From patchwork Sun Dec 8 20:50:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3307331 Return-Path: X-Original-To: patchwork-linux-sh@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 DBB59C0D4A for ; Sun, 8 Dec 2013 19:50:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EBE720111 for ; Sun, 8 Dec 2013 19:50:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A7352010F for ; Sun, 8 Dec 2013 19:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755553Ab3LHTuk (ORCPT ); Sun, 8 Dec 2013 14:50:40 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:44697 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755302Ab3LHTuk (ORCPT ); Sun, 8 Dec 2013 14:50:40 -0500 Received: by mail-lb0-f172.google.com with SMTP id z5so1048071lbh.31 for ; Sun, 08 Dec 2013 11:50:39 -0800 (PST) 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=7Ni/fMNGsOgSY1GadkpkD5tTuoORAQJHTRh9Dhe+nSY=; b=K8goy6ECZkZCUdl+BvVa5CSD7fCuDEddxBy36Ulqyk8EkYI5R+BtunxKsuGlDBUrrB 3Wl1B98ZGAvmq/1Nfs0XsniinYTqqou9RVope1f4Yh00O11mx9Jz3GOjFCeQWDDO15gy 1ZefvFuvG01KPmz16v/+CsmCFilZ8YQOOZbeBVr4udhopS0U/ek1bXPkuNF+aIjQEyQB 4qa7DneRA9UWR5Egc6rTQrBag65x4PU0mLdXo9QnhDU/tWFaDqjNrJiEOCBKRfZXHV8c 3Quy5Ex+ibrI7KfjEDXSbI6qlkoD83xxDMvqrawj5OIQwb905ZH7LH+jMpzOYoGd1Vsz tIwQ== X-Gm-Message-State: ALoCoQkEaYWMCDBtb1rd2Zj903bBEPhOt+IyTbkrMOQWk13Zsl+Uf5kx3y2Sh8lvjywKqQl6K38B X-Received: by 10.152.120.102 with SMTP id lb6mr883919lab.37.1386532238982; Sun, 08 Dec 2013 11:50:38 -0800 (PST) Received: from wasted.dev.rtsoft.ru (ppp83-237-60-130.pppoe.mtu-net.ru. [83.237.60.130]) by mx.google.com with ESMTPSA id r10sm9273712lag.7.2013.12.08.11.50.38 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 08 Dec 2013 11:50:38 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH v3 1/3] ARM: shmobile: r8a7791: add Ether clock Date: Sun, 8 Dec 2013 23:50:36 +0300 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: <201312082348.17588.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201312082348.17588.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201312082350.36871.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=-7.0 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 R8A7791 Ether clock. Signed-off-by: Sergei Shtylyov --- Changes in version 3: - changed "r8a779x-ether" wildcard device name to "r8a7791-ether"; - resolved rejects. Changes in version 2: - changed Ether device name to "r8a779x-ether". arch/arm/mach-shmobile/clock-r8a7791.c | 3 +++ 1 file changed, 3 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-r8a7791.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/clock-r8a7791.c +++ renesas/arch/arm/mach-shmobile/clock-r8a7791.c @@ -122,6 +122,7 @@ static struct clk *main_clks[] = { /* MSTP */ enum { + MSTP813, MSTP726, MSTP724, MSTP723, MSTP721, MSTP720, MSTP719, MSTP718, MSTP715, MSTP714, MSTP522, @@ -132,6 +133,7 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ [MSTP726] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 26, 0), /* LVDS0 */ [MSTP724] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 24, 0), /* DU0 */ [MSTP723] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 23, 0), /* DU1 */ @@ -192,6 +194,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), + CLKDEV_DEV_ID("r8a7791-ether", &mstp_clks[MSTP813]), /* Ether */ }; #define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \