devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
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	[thread overview]
Message-ID: <5042465.lGNbhCeBLl@wasted.cogentembedded.com> (raw)
In-Reply-To: <9246696.7P1aOyyQt4@wasted.cogentembedded.com>

Add macros usable by the device tree sources to reference the R8A7743 CPG
clocks  by index.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 2:
- reduced the macro value indentation.

 include/dt-bindings/clock/r8a7743-cpg-mssr.h |   43 +++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

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 <dt-bindings/clock/renesas-cpg-mssr.h>
+
+/* 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__ */


  reply	other threads:[~2016-10-07 20:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 20:45 [PATCH v2 0/2] Renesas R8A7743 CPG/MSSR clock support Sergei Shtylyov
2016-10-07 20:46 ` Sergei Shtylyov [this message]
     [not found]   ` <5042465.lGNbhCeBLl-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-10-12 11:39     ` [PATCH v2 1/2] ARM: shmobile: r8a7743: add CPG clock index macros Geert Uytterhoeven
2016-10-07 20:47 ` [PATCH v2 2/2] clk: renesas: cpg-mssr: add R8A7743 support Sergei Shtylyov
     [not found]   ` <2357731.SxJodxn1PJ-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-10-10 21:37     ` Rob Herring
2016-10-12 11:31   ` Geert Uytterhoeven
2016-10-19  9:06   ` Geert Uytterhoeven
     [not found]     ` <CAMuHMdW_XSCfy+Kv6uz1pX7q-XFPp=nkaXSehbZJYAeOt6Rf4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-20 19:47       ` Sergei Shtylyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5042465.lGNbhCeBLl@wasted.cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=devicetree@vger.kernel.org \
    --cc=horms+renesas@verge.net.au \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).