mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
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>
This commit is contained in:
parent
a3fd869a64
commit
b9ccfda293
2 changed files with 16 additions and 0 deletions
|
@ -283,5 +283,7 @@ enum {
|
||||||
SHDMA_SLAVE_RIIC8_RX,
|
SHDMA_SLAVE_RIIC8_RX,
|
||||||
SHDMA_SLAVE_RIIC9_TX,
|
SHDMA_SLAVE_RIIC9_TX,
|
||||||
SHDMA_SLAVE_RIIC9_RX,
|
SHDMA_SLAVE_RIIC9_RX,
|
||||||
|
SHDMA_SLAVE_RSPI_TX,
|
||||||
|
SHDMA_SLAVE_RSPI_RX,
|
||||||
};
|
};
|
||||||
#endif /* __ASM_SH7757_H__ */
|
#endif /* __ASM_SH7757_H__ */
|
||||||
|
|
|
@ -216,6 +216,20 @@ static const struct sh_dmae_slave_config sh7757_dmae1_slaves[] = {
|
||||||
TS_INDEX2VAL(XMIT_SZ_8BIT),
|
TS_INDEX2VAL(XMIT_SZ_8BIT),
|
||||||
.mid_rid = 0x42,
|
.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[] = {
|
static const struct sh_dmae_slave_config sh7757_dmae2_slaves[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue