Skip to contentSkip to conversation

ARM: shmobile: r8a7790: SYS-DMAC and MMCIF prototype

PATCH New Magnus Damm 1 participant 1 message Jun 3, 2014

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 2/3 ARM: shmobile: r8a7790: SYS-DMAC and MMCIF prototype

From: Magnus Damm <[email protected]>

Add r8a7790 MMCIF entries to the SYS-DMAC prototype code to allow board specific use of DMA with MMCIF.

Not for upstream merge.

---

Written on top of renesas-devel-v3.15-rc7-20140530 and [PATCH 01/03] ARM: shmobile: r8a7790: SYS-DMAC prototype

 arch/arm/mach-shmobile/include/mach/r8a7790.h |    4 ++++
 arch/arm/mach-shmobile/setup-r8a7790.c        |    2 ++
 2 files changed, 6 insertions(+)
arch/arm/mach-shmobile/include/mach/r8a7790.h +4 -0
@@ -26,6 +26,10 @@ enum {
 	AUDIO_DMAC_SLAVE_SSI8_RX,
 	AUDIO_DMAC_SLAVE_SSI9_TX,
 	AUDIO_DMAC_SLAVE_SSI9_RX,
+	SYS_DMAC_SLAVE_MMCIF0_TX,
+	SYS_DMAC_SLAVE_MMCIF0_RX,
+	SYS_DMAC_SLAVE_MMCIF1_TX,
+	SYS_DMAC_SLAVE_MMCIF1_RX,
 };
 
 void r8a7790_add_standard_devices(void);
arch/arm/mach-shmobile/setup-r8a7790.c +2 -0
@@ -55,6 +55,8 @@
 }
 
 static const struct sh_dmae_slave_config r8a7790_sys_dmac_slaves[] = {
+	SYS_DMAC_SLAVE(MMCIF0, 32, 0xee200000, 0x34, 0x34, 0xd1, 0xd2),
+	SYS_DMAC_SLAVE(MMCIF1, 32, 0xee220000, 0x34, 0x34, 0xe1, 0xe2),
 };
 
 static const struct sh_dmae_channel r8a7790_sys_dmac_channels[] = {