summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-sh7372.c
diff options
context:
space:
mode:
authorKuninori Morimoto2012-06-20 11:30:32 +0200
committerRafael J. Wysocki2012-06-20 11:30:32 +0200
commit4d6344f3c943a5ff1fd8dcbd7be61ebdef1d0285 (patch)
treeab575c30429afc2293e63c3ca0906e9d51a8a593 /arch/arm/mach-shmobile/setup-sh7372.c
parentARM: shmobile: sh73a0: bugfix: SY-DMAC number (diff)
downloadkernel-qcow2-linux-4d6344f3c943a5ff1fd8dcbd7be61ebdef1d0285.tar.gz
kernel-qcow2-linux-4d6344f3c943a5ff1fd8dcbd7be61ebdef1d0285.tar.xz
kernel-qcow2-linux-4d6344f3c943a5ff1fd8dcbd7be61ebdef1d0285.zip
ARM: shmobile: sh7372: bugfix: chclr_offset base
chclr_write() will use (chan_reg + chclr_offset). In sh7372 case, DMA1CHCLR is started from 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> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-sh7372.c')
-rw-r--r--arch/arm/mach-shmobile/setup-sh7372.c2
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 6a4bd582c028..fafce9ce8218 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -484,7 +484,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[] = {
{