All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-renesas-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
	Magnus Damm <magnus.damm@gmail.com>,
	Ai Kyuse <ai.kyuse.uw@renesas.com>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH/RTF 2/7] clk: renesas: r8a7796: Add SDIF clocks
Date: Wed, 17 Aug 2016 13:31:51 +0200	[thread overview]
Message-ID: <1471433516-4478-3-git-send-email-horms+renesas@verge.net.au> (raw)
In-Reply-To: <1471433516-4478-1-git-send-email-horms+renesas@verge.net.au>

From: Ai Kyuse <ai.kyuse.uw@renesas.com>

This patch adds SDIF clocks for R8A7796 SoC.

Signed-off-by: Ai Kyuse <ai.kyuse.uw@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/clk/renesas/r8a7796-cpg-mssr.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c
index 999955c2b23e..4c390a8bc3e1 100644
--- a/drivers/clk/renesas/r8a7796-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c
@@ -93,6 +93,11 @@ static const struct cpg_core_clk r8a7796_core_clks[] __initconst = {
 	DEF_FIXED("s3d2",       R8A7796_CLK_S3D2,  CLK_S3,         2, 1),
 	DEF_FIXED("s3d4",       R8A7796_CLK_S3D4,  CLK_S3,         4, 1),
 
+	DEF_GEN3_SD("sd0",      R8A7796_CLK_SD0,   CLK_PLL1_DIV4, 0x0074),
+	DEF_GEN3_SD("sd1",      R8A7796_CLK_SD1,   CLK_PLL1_DIV4, 0x0078),
+	DEF_GEN3_SD("sd2",      R8A7796_CLK_SD2,   CLK_PLL1_DIV4, 0x0268),
+	DEF_GEN3_SD("sd3",      R8A7796_CLK_SD3,   CLK_PLL1_DIV4, 0x026c),
+
 	DEF_FIXED("cl",         R8A7796_CLK_CL,    CLK_PLL1_DIV2, 48, 1),
 	DEF_FIXED("cp",         R8A7796_CLK_CP,    CLK_EXTAL,      2, 1),
 
@@ -104,6 +109,10 @@ static const struct cpg_core_clk r8a7796_core_clks[] __initconst = {
 
 static const struct mssr_mod_clk r8a7796_mod_clks[] __initconst = {
 	DEF_MOD("scif2",		 310,	R8A7796_CLK_S3D4),
+	DEF_MOD("sdif3",		 311,	R8A7796_CLK_SD3),
+	DEF_MOD("sdif2",		 312,	R8A7796_CLK_SD2),
+	DEF_MOD("sdif1",		 313,	R8A7796_CLK_SD1),
+	DEF_MOD("sdif0",		 314,	R8A7796_CLK_SD0),
 	DEF_MOD("rwdt0",		 402,	R8A7796_CLK_R),
 	DEF_MOD("intc-ap",		 408,	R8A7796_CLK_S3D1),
 	DEF_MOD("gpio7",		 905,	R8A7796_CLK_S3D4),
-- 
2.7.0.rc3.207.g0ac5344

WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RTF 2/7] clk: renesas: r8a7796: Add SDIF clocks
Date: Wed, 17 Aug 2016 13:31:51 +0200	[thread overview]
Message-ID: <1471433516-4478-3-git-send-email-horms+renesas@verge.net.au> (raw)
In-Reply-To: <1471433516-4478-1-git-send-email-horms+renesas@verge.net.au>

From: Ai Kyuse <ai.kyuse.uw@renesas.com>

This patch adds SDIF clocks for R8A7796 SoC.

Signed-off-by: Ai Kyuse <ai.kyuse.uw@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/clk/renesas/r8a7796-cpg-mssr.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c
index 999955c2b23e..4c390a8bc3e1 100644
--- a/drivers/clk/renesas/r8a7796-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c
@@ -93,6 +93,11 @@ static const struct cpg_core_clk r8a7796_core_clks[] __initconst = {
 	DEF_FIXED("s3d2",       R8A7796_CLK_S3D2,  CLK_S3,         2, 1),
 	DEF_FIXED("s3d4",       R8A7796_CLK_S3D4,  CLK_S3,         4, 1),
 
+	DEF_GEN3_SD("sd0",      R8A7796_CLK_SD0,   CLK_PLL1_DIV4, 0x0074),
+	DEF_GEN3_SD("sd1",      R8A7796_CLK_SD1,   CLK_PLL1_DIV4, 0x0078),
+	DEF_GEN3_SD("sd2",      R8A7796_CLK_SD2,   CLK_PLL1_DIV4, 0x0268),
+	DEF_GEN3_SD("sd3",      R8A7796_CLK_SD3,   CLK_PLL1_DIV4, 0x026c),
+
 	DEF_FIXED("cl",         R8A7796_CLK_CL,    CLK_PLL1_DIV2, 48, 1),
 	DEF_FIXED("cp",         R8A7796_CLK_CP,    CLK_EXTAL,      2, 1),
 
@@ -104,6 +109,10 @@ static const struct cpg_core_clk r8a7796_core_clks[] __initconst = {
 
 static const struct mssr_mod_clk r8a7796_mod_clks[] __initconst = {
 	DEF_MOD("scif2",		 310,	R8A7796_CLK_S3D4),
+	DEF_MOD("sdif3",		 311,	R8A7796_CLK_SD3),
+	DEF_MOD("sdif2",		 312,	R8A7796_CLK_SD2),
+	DEF_MOD("sdif1",		 313,	R8A7796_CLK_SD1),
+	DEF_MOD("sdif0",		 314,	R8A7796_CLK_SD0),
 	DEF_MOD("rwdt0",		 402,	R8A7796_CLK_R),
 	DEF_MOD("intc-ap",		 408,	R8A7796_CLK_S3D1),
 	DEF_MOD("gpio7",		 905,	R8A7796_CLK_S3D4),
-- 
2.7.0.rc3.207.g0ac5344

  parent reply	other threads:[~2016-08-17 11:32 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 11:31 [PATCH/RTF 0/7] Add SDHI to r8a7796/salvator-x Simon Horman
2016-08-17 11:31 ` Simon Horman
2016-08-17 11:31 ` [PATCH/RTF 1/7] clk: renesas: r8a7796: Add GPIO clocks Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 13:40   ` Geert Uytterhoeven
2016-08-17 13:40     ` Geert Uytterhoeven
2016-08-17 11:31 ` Simon Horman [this message]
2016-08-17 11:31   ` [PATCH/RTF 2/7] clk: renesas: r8a7796: Add SDIF clocks Simon Horman
2016-08-17 13:47   ` Geert Uytterhoeven
2016-08-17 13:47     ` Geert Uytterhoeven
2016-08-22  9:15     ` Simon Horman
2016-08-22  9:15       ` Simon Horman
2016-08-17 11:31 ` [PATCH/RTF 3/7] pinctrl: sh-pfc: r8a7796: Add SDHI pins, groups and functions Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 15:31   ` Geert Uytterhoeven
2016-08-17 15:31     ` Geert Uytterhoeven
2016-08-17 11:31 ` [PATCH/RTF 4/7] mmc: sh_mobile_sdhi: Add r8a7796 support Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 15:36   ` Geert Uytterhoeven
2016-08-17 15:36     ` Geert Uytterhoeven
2016-08-17 11:31 ` [PATCH/RTF 5/7] arm64: dts: r8a7796: Add GPIO device nodes Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 15:41   ` Geert Uytterhoeven
2016-08-17 15:41     ` Geert Uytterhoeven
2016-08-22  9:15     ` Simon Horman
2016-08-22  9:15       ` Simon Horman
2016-08-17 11:31 ` [PATCH/RTF 6/7] arm64: dts: r8a7796: add SDHI nodes Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 15:43   ` Geert Uytterhoeven
2016-08-17 15:43     ` Geert Uytterhoeven
2016-08-17 11:31 ` [PATCH/RTF 7/7] arm64: dts: r8a7796: salvator-x: enable SDHI0 & 3 Simon Horman
2016-08-17 11:31   ` Simon Horman
2016-08-17 15:52   ` Geert Uytterhoeven
2016-08-17 15:52     ` Geert Uytterhoeven
2016-08-22  9:25     ` Simon Horman
2016-08-22  9:25       ` Simon Horman
2016-08-25  3:31     ` Magnus Damm
2016-08-25  3:31       ` Magnus Damm

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=1471433516-4478-3-git-send-email-horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=ai.kyuse.uw@renesas.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.