SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH][RFC] ARM: mach-shmobile: setup-sh7372: fixup chclr_offset base
@ 2012-05-30  5:17 Kuninori Morimoto
  2012-05-30  7:31 ` Guennadi Liakhovetski
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Kuninori Morimoto @ 2012-05-30  5:17 UTC (permalink / raw)
  To: linux-sh

In shdma.c, chclr_write() will use (chan_reg + chclr_offset).
In sh7372 case, for example DMA0 case,
DMA1CHCLR_0 is located on 0xfe008220,
and chan_reg is started from 0xfe008020 (= sh7372_dmae0_resources).
Thus, chclr_offset should be (0x220 - 0x20) instead of 0x220.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
>> Guennadi

I guess this is bugfix patch for sh7372 dmaengine chclr_offset.
But I'm not sure detail of it.
Please check this patch, and please give this patch your acked-by
if you agree this.

 arch/arm/mach-shmobile/setup-sh7372.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index 35a3a9c..dfddad8 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -460,7 +460,7 @@ static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = {
 	},
 };
 
-#define SH7372_CHCLR 0x220
+#define SH7372_CHCLR (0x220 - 0x20)
 
 static const struct sh_dmae_channel sh7372_dmae_channels[] = {
 	{
-- 
1.7.5.4


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

end of thread, other threads:[~2012-05-31 23:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30  5:17 [PATCH][RFC] ARM: mach-shmobile: setup-sh7372: fixup chclr_offset base Kuninori Morimoto
2012-05-30  7:31 ` Guennadi Liakhovetski
2012-05-30  7:40 ` Kuninori Morimoto
2012-05-30  8:05 ` Guennadi Liakhovetski
2012-05-30  8:16 ` Kuninori Morimoto
2012-05-30 15:05 ` Guennadi Liakhovetski
2012-05-30 21:27 ` Rafael J. Wysocki
2012-05-31 16:10 ` Guennadi Liakhovetski
2012-05-31 23:50 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox