Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: modify the sh_dmae_slave_config for RSPI in setup-sh7757

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

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Shimoda, Yoshihiro and committed by
Paul Mundt
b9ccfda2 a3fd869a

+16
+2
arch/sh/include/cpu-sh4/cpu/sh7757.h
··· 283 283 SHDMA_SLAVE_RIIC8_RX, 284 284 SHDMA_SLAVE_RIIC9_TX, 285 285 SHDMA_SLAVE_RIIC9_RX, 286 + SHDMA_SLAVE_RSPI_TX, 287 + SHDMA_SLAVE_RSPI_RX, 286 288 }; 287 289 #endif /* __ASM_SH7757_H__ */
+14
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
··· 216 216 TS_INDEX2VAL(XMIT_SZ_8BIT), 217 217 .mid_rid = 0x42, 218 218 }, 219 + { 220 + .slave_id = SHDMA_SLAVE_RSPI_TX, 221 + .addr = 0xfe480004, 222 + .chcr = SM_INC | 0x800 | 0x40000000 | 223 + TS_INDEX2VAL(XMIT_SZ_16BIT), 224 + .mid_rid = 0xc1, 225 + }, 226 + { 227 + .slave_id = SHDMA_SLAVE_RSPI_RX, 228 + .addr = 0xfe480004, 229 + .chcr = DM_INC | 0x800 | 0x40000000 | 230 + TS_INDEX2VAL(XMIT_SZ_16BIT), 231 + .mid_rid = 0xc2, 232 + }, 219 233 }; 220 234 221 235 static const struct sh_dmae_slave_config sh7757_dmae2_slaves[] = {