From patchwork Thu Nov 14 23:19:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3185671 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 9AFAC9F3AE for ; Thu, 14 Nov 2013 22:19:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C397D20944 for ; Thu, 14 Nov 2013 22:19:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECB3C20942 for ; Thu, 14 Nov 2013 22:19:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756874Ab3KNWTR (ORCPT ); Thu, 14 Nov 2013 17:19:17 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:38038 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757682Ab3KNWTQ (ORCPT ); Thu, 14 Nov 2013 17:19:16 -0500 Received: by mail-lb0-f181.google.com with SMTP id q8so903375lbi.40 for ; Thu, 14 Nov 2013 14:19:15 -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=yj/ggrlomKCRHYrQR7ibrX4bOfErU+kGEZEO24GPUwQ=; b=C/XEcOcYDnzqh5R7S3kn9BM8K88YeEjyrNivTkncqRGuTyp3AOGj6MA+isy63+sKuW vZBmiLJF3wT3AteQtq/jjcDZV0OXLAq7gDkeqsz+4r0f6DZF0HntVBrRkV0Vfps80C3V FQsWaa6bH5B5xdnFTKXHhAXf+ZIJn8wfY+qiBvaMakK99iQuOsXMpohHtMhBugl6BvDM k8LobTSls1qZCK7VUC221+UnLsJpO3u3vCwwkexdANvCeW47GB0q81KSa3zgjaQabXNo RPopSEf9PLXsKfwn96MG/RwZHtDt95WzsMNt1w5mlNU+wdcRn8RRqPM6OvymZOpp/+3N JeLw== X-Gm-Message-State: ALoCoQlqZZYah2Q96P4gchQbd0ORB6V7hQQayCpyg7DUzxFcvZeaP6HAEavx1U2TKOSxRv6COTE/ X-Received: by 10.112.146.135 with SMTP id tc7mr914647lbb.63.1384467555389; Thu, 14 Nov 2013 14:19:15 -0800 (PST) Received: from wasted.dev.rtsoft.ru (ppp83-237-55-178.pppoe.mtu-net.ru. [83.237.55.178]) by mx.google.com with ESMTPSA id xf2sm23872867lbb.4.2013.11.14.14.19.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 14:19:14 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH v2 1/3] ARM: shmobile: r8a7791: add Ether clock Date: Fri, 15 Nov 2013 02:19:25 +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: <201311150217.23563.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201311150217.23563.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201311150219.25520.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=-6.9 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 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 @@ -120,6 +120,7 @@ static struct clk *main_clks[] = { /* MSTP */ enum { + MSTP813, MSTP721, MSTP720, MSTP719, MSTP718, MSTP715, MSTP714, MSTP216, MSTP207, MSTP206, @@ -129,6 +130,7 @@ enum { }; static struct clk mstp_clks[MSTP_NR] = { + [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ [MSTP721] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 21, 0), /* SCIF0 */ [MSTP720] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 20, 0), /* SCIF1 */ [MSTP719] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 19, 0), /* SCIF2 */ @@ -180,6 +182,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.13", &mstp_clks[MSTP1106]), /* SCIFA4 */ CLKDEV_DEV_ID("sh-sci.14", &mstp_clks[MSTP1107]), /* SCIFA5 */ CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), + CLKDEV_DEV_ID("r8a779x-ether", &mstp_clks[MSTP813]), /* Ether */ }; #define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \