From patchwork Thu Nov 3 21:09:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9411487 X-Patchwork-Delegate: sboyd@codeaurora.org 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 0888D60722 for ; Thu, 3 Nov 2016 21:09:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF8CF2AEC1 for ; Thu, 3 Nov 2016 21:09:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E48192AF57; Thu, 3 Nov 2016 21:09:39 +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 602D22AECF for ; Thu, 3 Nov 2016 21:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932884AbcKCVJe (ORCPT ); Thu, 3 Nov 2016 17:09:34 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:33559 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758915AbcKCVJc (ORCPT ); Thu, 3 Nov 2016 17:09:32 -0400 Received: by mail-lf0-f54.google.com with SMTP id c13so49629302lfg.0 for ; Thu, 03 Nov 2016 14:09:32 -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=yHeh4HuAsNrp0qzrrIUxJX6KyZ7uBrEdCfYckRdEroY=; b=tnl+vfHLZtDSmcoRE4wW8E+tR+SdeLzoBqgYEMkf9gmKBL6Hvnk4EZ8vsq4MZa/RRR 6y/hGwKSxLalAIEiLZRjLbODGjrPhXtDKYcnvngx/CG8HfWlEHkMPIHeoTKM6lVl6n7W +OusNPacf/iFQwywwjdFm9jkrJbi2hpyDVXu7Fl4HSUf1HWMBxGjqQVdZMBySr7W7rG/ S301uYbhuGp5UDZvkPbcSzyXSuoLHVL2IqMEq7XfR8JFHW0HBA+o3Ad0PuyC1ruIIY58 ZZeNY3Z+6fs8bQ02j5M8MVPd6vbmBt1yhjkLEobsTt3nvKqtszUkNTv1Uw7iRzGkw7cX KJrA== 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=yHeh4HuAsNrp0qzrrIUxJX6KyZ7uBrEdCfYckRdEroY=; b=YagcXcbvTP+5/nzSXdziurPxl45kNIGO8Vy+IPSLR1N66Wu5zgkRSpsKrxdJPpgx2b emodlj8t5wy91Z3cAF4WIVqGILOURBOiwSPlrj3XwrOxONxg+Z3vHgn5y3dvcq5kbH0P fP1ORu3JAZJ4E0cVFe/hrVbMmc54O/+C8bq9wnk+lw/Owu3KqWk0x0g3c7k9IY0vSO8b 6VFFAzRpLe4vWXyNk2wm2ZubP000nlh6wKb5xT/cCFJA1Op2jQ1ty/gCFq/DXoFtFhAF UkaTbIQwaBw9o5fScuwxmZ9pwII2yPrctVfgYwIgQwWCgM1xYGek1mk8+8SNBjUV8uCZ 6z6w== X-Gm-Message-State: ABUngvc877v8Wf+YBWifktl4/U+JEa7w63abTKxO/lOlRQg4P/clS2HV4qM5avSO93u+Fg== X-Received: by 10.25.35.6 with SMTP id j6mr6583234lfj.137.1478207370809; Thu, 03 Nov 2016 14:09:30 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.187]) by smtp.gmail.com with ESMTPSA id c78sm1636972lfc.34.2016.11.03.14.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 14:09:29 -0700 (PDT) From: Sergei Shtylyov To: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, horms+renesas@verge.net.au Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, sboyd@codeaurora.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 1/2] ARM: shmobile: r8a7745: add CPG clock index macros Date: Fri, 04 Nov 2016 00:09:28 +0300 Message-ID: <1764252.Q3lPMOJFSH@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.9-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <9992368.desJvZIsUT@wasted.cogentembedded.com> References: <9992368.desJvZIsUT@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 R8A7745 CPG clocks by index. The data comes from the table 7.2c in the revision 0.50 of the RZ/G Series User's Manual. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 2: - added Geert's tag. include/dt-bindings/clock/r8a7745-cpg-mssr.h | 44 +++++++++++++++++++++++++++ 1 file changed, 44 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: linux/include/dt-bindings/clock/r8a7745-cpg-mssr.h =================================================================== --- /dev/null +++ linux/include/dt-bindings/clock/r8a7745-cpg-mssr.h @@ -0,0 +1,44 @@ +/* + * 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_R8A7745_CPG_MSSR_H__ +#define __DT_BINDINGS_CLOCK_R8A7745_CPG_MSSR_H__ + +#include + +/* r8a7745 CPG Core Clocks */ +#define R8A7745_CLK_Z2 0 +#define R8A7745_CLK_ZG 1 +#define R8A7745_CLK_ZTR 2 +#define R8A7745_CLK_ZTRD2 3 +#define R8A7745_CLK_ZT 4 +#define R8A7745_CLK_ZX 5 +#define R8A7745_CLK_ZS 6 +#define R8A7745_CLK_HP 7 +#define R8A7745_CLK_B 9 +#define R8A7745_CLK_LB 10 +#define R8A7745_CLK_P 11 +#define R8A7745_CLK_CL 12 +#define R8A7745_CLK_CP 13 +#define R8A7745_CLK_M2 14 +#define R8A7745_CLK_ZB3 16 +#define R8A7745_CLK_ZB3D2 17 +#define R8A7745_CLK_DDR 18 +#define R8A7745_CLK_SDH 19 +#define R8A7745_CLK_SD0 20 +#define R8A7745_CLK_SD2 21 +#define R8A7745_CLK_SD3 22 +#define R8A7745_CLK_MMC0 23 +#define R8A7745_CLK_MP 24 +#define R8A7745_CLK_QSPI 25 +#define R8A7745_CLK_ACP 26 +#define R8A7745_CLK_RCAN 27 +#define R8A7745_CLK_R 28 +#define R8A7745_CLK_OSC 29 + +#endif /* __DT_BINDINGS_CLOCK_R8A7745_CPG_MSSR_H__ */