All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757
@ 2012-04-19 10:04 Shimoda, Yoshihiro
  2012-07-25  7:53 ` Shimoda, Yoshihiro
  2012-07-26  5:55 ` Paul Mundt
  0 siblings, 2 replies; 3+ messages in thread
From: Shimoda, Yoshihiro @ 2012-04-19 10:04 UTC (permalink / raw)
  To: linux-sh

Modify the sh7757_dmae1_slave to add parameters of RSPI's slave_id

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/sh/include/cpu-sh4/cpu/sh7757.h   |    2 ++
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/sh/include/cpu-sh4/cpu/sh7757.h b/arch/sh/include/cpu-sh4/cpu/sh7757.h
index 41f9f8b..5340f3b 100644
--- a/arch/sh/include/cpu-sh4/cpu/sh7757.h
+++ b/arch/sh/include/cpu-sh4/cpu/sh7757.h
@@ -283,5 +283,7 @@ enum {
 	SHDMA_SLAVE_RIIC8_RX,
 	SHDMA_SLAVE_RIIC9_TX,
 	SHDMA_SLAVE_RIIC9_RX,
+	SHDMA_SLAVE_RSPI_TX,
+	SHDMA_SLAVE_RSPI_RX,
 };
 #endif /* __ASM_SH7757_H__ */
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
index fe45e4c..f807590 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
@@ -216,6 +216,20 @@ static const struct sh_dmae_slave_config sh7757_dmae1_slaves[] = {
 				  TS_INDEX2VAL(XMIT_SZ_8BIT),
 		.mid_rid	= 0x42,
 	},
+	{
+		.slave_id	= SHDMA_SLAVE_RSPI_TX,
+		.addr		= 0xfe480004,
+		.chcr		= SM_INC | 0x800 | 0x40000000 |
+				  TS_INDEX2VAL(XMIT_SZ_16BIT),
+		.mid_rid	= 0xc1,
+	},
+	{
+		.slave_id	= SHDMA_SLAVE_RSPI_RX,
+		.addr		= 0xfe480004,
+		.chcr		= DM_INC | 0x800 | 0x40000000 |
+				  TS_INDEX2VAL(XMIT_SZ_16BIT),
+		.mid_rid	= 0xc2,
+	},
 };

 static const struct sh_dmae_slave_config sh7757_dmae2_slaves[] = {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757
  2012-04-19 10:04 [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757 Shimoda, Yoshihiro
@ 2012-07-25  7:53 ` Shimoda, Yoshihiro
  2012-07-26  5:55 ` Paul Mundt
  1 sibling, 0 replies; 3+ messages in thread
From: Shimoda, Yoshihiro @ 2012-07-25  7:53 UTC (permalink / raw)
  To: linux-sh

Modify the sh7757_dmae1_slave to add paramters of RSPI's slave_id.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/sh/include/cpu-sh4/cpu/sh7757.h   |    2 ++
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/sh/include/cpu-sh4/cpu/sh7757.h b/arch/sh/include/cpu-sh4/cpu/sh7757.h
index 41f9f8b..5340f3b 100644
--- a/arch/sh/include/cpu-sh4/cpu/sh7757.h
+++ b/arch/sh/include/cpu-sh4/cpu/sh7757.h
@@ -283,5 +283,7 @@ enum {
 	SHDMA_SLAVE_RIIC8_RX,
 	SHDMA_SLAVE_RIIC9_TX,
 	SHDMA_SLAVE_RIIC9_RX,
+	SHDMA_SLAVE_RSPI_TX,
+	SHDMA_SLAVE_RSPI_RX,
 };
 #endif /* __ASM_SH7757_H__ */
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
index a770842..4a2f357 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
@@ -216,6 +216,20 @@ static const struct sh_dmae_slave_config sh7757_dmae1_slaves[] = {
 				  TS_INDEX2VAL(XMIT_SZ_8BIT),
 		.mid_rid	= 0x42,
 	},
+	{
+		.slave_id	= SHDMA_SLAVE_RSPI_TX,
+		.addr		= 0xfe480004,
+		.chcr		= SM_INC | 0x800 | 0x40000000 |
+				  TS_INDEX2VAL(XMIT_SZ_16BIT),
+		.mid_rid	= 0xc1,
+	},
+	{
+		.slave_id	= SHDMA_SLAVE_RSPI_RX,
+		.addr		= 0xfe480004,
+		.chcr		= DM_INC | 0x800 | 0x40000000 |
+				  TS_INDEX2VAL(XMIT_SZ_16BIT),
+		.mid_rid	= 0xc2,
+	},
 };

 static const struct sh_dmae_slave_config sh7757_dmae2_slaves[] = {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757
  2012-04-19 10:04 [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757 Shimoda, Yoshihiro
  2012-07-25  7:53 ` Shimoda, Yoshihiro
@ 2012-07-26  5:55 ` Paul Mundt
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2012-07-26  5:55 UTC (permalink / raw)
  To: linux-sh

On Wed, Jul 25, 2012 at 04:53:21PM +0900, Shimoda, Yoshihiro wrote:
> Modify the sh7757_dmae1_slave to add paramters of RSPI's slave_id.
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-26  5:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19 10:04 [PATCH] sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757 Shimoda, Yoshihiro
2012-07-25  7:53 ` Shimoda, Yoshihiro
2012-07-26  5:55 ` Paul Mundt

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.