From patchwork Fri Oct 7 20:46:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9367507 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC81D6075E for ; Fri, 7 Oct 2016 20:47:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDBCD297F9 for ; Fri, 7 Oct 2016 20:47:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C257529832; Fri, 7 Oct 2016 20:47:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04E4B297F9 for ; Fri, 7 Oct 2016 20:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754877AbcJGUrP (ORCPT ); Fri, 7 Oct 2016 16:47:15 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:36270 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847AbcJGUrO (ORCPT ); Fri, 7 Oct 2016 16:47:14 -0400 Received: by mail-lf0-f49.google.com with SMTP id b75so49597680lfg.3 for ; Fri, 07 Oct 2016 13:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=96YwnxdmuB3jrcPR68eVPZa0BaCHKHt8H+lQXzN9xOU=; b=KAJm5v2qJHTHQKMpdvRm/7nR94B7LKWITwAqnroQofPz69xKAx+b/Z9KykurXGEXeJ bQtmJ9tnayrCQxEn7Qs7TGYt6sXjxMDolnSmsiKfbKFWSbGJeq7ETWZJ95AazayV2JCf K2zlqpCXanrRNJ0sMeVUZY3hFU5TneUcGxjtEJ/X06eSCu5zBkEHn43a7BKhc0WYjPCt unrBUJplWjLyzRnhwa7f5N7OMj9HdEp4Pk8Uwjtyl8V+xcQ6CImYGll+KQfSoBo22gRH UWc7OmVwQ7hNOPUnqHeKfxIb8HQT2Hbj8P2rbpEkyyQ4pYaZQQATJUy3BFzsFOk30WCA lFkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=96YwnxdmuB3jrcPR68eVPZa0BaCHKHt8H+lQXzN9xOU=; b=gia9TJBsMopWAdElkDw+Y6c4DC6wbIpx/K3NaEc6KRYdYvs+emRUDCA6hOOhybmq4b oX4A0oFIQHeZNH+sj5f0MhYPTzAslcZ/825mG6BgtY/59WgHbpU69pc56l9XLMIIGY5G zb8uEcEAOS+PQQTAL2phA62B2j5KiL3Dz0z3alyeGgXDUoOKgREbNPmiF6oISvXIcYt5 VapkhSF9ouRr/0//uI5NFIuOXzX0FV/aUarZt/bPlveE7Vess842ZcBpraNV96Wqd0Ig +XyHP/2JB5MS7/1oYQzAm6dhY9CCqEICKA7fXNyOYbPR+EaoF524uyFPG/FYNrX3OPOh Vi7g== X-Gm-Message-State: AA6/9RkLb/6PHXr3GQHn5PSaA2qGho+DKYzcSVG+W/TFtwPhsW1vLkmAYfD2xM31XivQlA== X-Received: by 10.25.149.203 with SMTP id x194mr7204806lfd.76.1475873210723; Fri, 07 Oct 2016 13:46:50 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.80.198]) by smtp.gmail.com with ESMTPSA id g7sm3835460ljg.44.2016.10.07.13.46.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 13:46:49 -0700 (PDT) From: Sergei Shtylyov To: mturquette@baylibre.com, linux-clk@vger.kernel.org, sboyd@codeaurora.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, horms+renesas@verge.net.au Subject: [PATCH v2 1/2] ARM: shmobile: r8a7743: add CPG clock index macros Date: Fri, 07 Oct 2016 23:46:47 +0300 Message-ID: <5042465.lGNbhCeBLl@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.5-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <9246696.7P1aOyyQt4@wasted.cogentembedded.com> References: <9246696.7P1aOyyQt4@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add macros usable by the device tree sources to reference the R8A7743 CPG clocks by index. Signed-off-by: Sergei Shtylyov --- Changes in version 2: - reduced the macro value indentation. include/dt-bindings/clock/r8a7743-cpg-mssr.h | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/include/dt-bindings/clock/r8a7743-cpg-mssr.h =================================================================== --- /dev/null +++ renesas/include/dt-bindings/clock/r8a7743-cpg-mssr.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2016 Cogent Embedded Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ +#ifndef __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ +#define __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ + +#include + +/* r8a7743 CPG Core Clocks */ +#define R8A7743_CLK_Z 0 +#define R8A7743_CLK_ZG 1 +#define R8A7743_CLK_ZTR 2 +#define R8A7743_CLK_ZTRD2 3 +#define R8A7743_CLK_ZT 4 +#define R8A7743_CLK_ZX 5 +#define R8A7743_CLK_ZS 6 +#define R8A7743_CLK_HP 7 +#define R8A7743_CLK_B 8 +#define R8A7743_CLK_LB 9 +#define R8A7743_CLK_P 10 +#define R8A7743_CLK_CL 11 +#define R8A7743_CLK_M2 12 +#define R8A7743_CLK_ZB3 13 +#define R8A7743_CLK_ZB3D2 14 +#define R8A7743_CLK_DDR 15 +#define R8A7743_CLK_SDH 16 +#define R8A7743_CLK_SD0 17 +#define R8A7743_CLK_SD2 18 +#define R8A7743_CLK_SD3 19 +#define R8A7743_CLK_MMC0 20 +#define R8A7743_CLK_MP 21 +#define R8A7743_CLK_QSPI 22 +#define R8A7743_CLK_CP 23 +#define R8A7743_CLK_RCAN 24 +#define R8A7743_CLK_R 25 +#define R8A7743_CLK_OSC 26 + +#endif /* __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ */