diff mbox

[2/3] ARM: shmobile: r8a7743: add CPG clock index macros

Message ID 4289081.UEHqeRI6YW@wasted.cogentembedded.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Sergei Shtylyov Oct. 5, 2016, 8:54 p.m. UTC
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>

---
 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

Comments

Sergei Shtylyov Oct. 7, 2016, 7:06 p.m. UTC | #1
Hello.

On 10/05/2016 11:54 PM, Sergei Shtylyov wrote:

> 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>

    Probably makes ense to merge this patch to both the clk and renesas trees 
in order to satisfy the dependencies both ways... what do you think, Simon?

MBR, Sergei

--
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
Sergei Shtylyov Oct. 7, 2016, 7:06 p.m. UTC | #2
Hello.

On 10/05/2016 11:54 PM, Sergei Shtylyov wrote:

> 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>

    Probably makes sense to merge this patch to both the clk and renesas trees 
in order to satisfy the dependencies both ways... what do you think, Simon?

MBR, Sergei

--
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
Geert Uytterhoeven Oct. 7, 2016, 7:35 p.m. UTC | #3
Hi Sergei,

On Fri, Oct 7, 2016 at 9:06 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> On 10/05/2016 11:54 PM, Sergei Shtylyov wrote:
>> 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>
>
>    Probably makes sense to merge this patch to both the clk and renesas
> trees in order to satisfy the dependencies both ways... what do you think,
> Simon?

Yes, this is another case where both the clock maintainers and Simon
should merge my clk-renesas-for-v4.10 tree, when It has received (a future
version of) this series.

But that's to be handled after v4.9-rc1...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
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
diff mbox

Patch

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__ */