ARM: mach-shmobile: add FLCTL DMA slave definitions for sh7372
PATCH 1/1 ARM: mach-shmobile: add FLCTL DMA slave definitions for sh7372
SH7372 can use DMA with the FLCTL flash controller. Add required slave IDs and slave descriptors.
Signed-off-by Bastian Hecht <[email protected]>
---
Sort order is .mid_rid.
arch/arm/mach-shmobile/include/mach/sh7372.h | 4 ++++ arch/arm/mach-shmobile/setup-sh7372.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
arch/arm/mach-shmobile/include/mach/sh7372.h +4 -0
@@ -452,6 +452,10 @@ enum {SHDMA_SLAVE_SCIF5_RX ,SHDMA_SLAVE_SCIF6_TX ,SHDMA_SLAVE_SCIF6_RX , +SHDMA_SLAVE_FLCTL0_TX , +SHDMA_SLAVE_FLCTL0_RX , +SHDMA_SLAVE_FLCTL1_TX , +SHDMA_SLAVE_FLCTL1_RX ,SHDMA_SLAVE_SDHI0_RX ,SHDMA_SLAVE_SDHI0_TX , SHDMA_SLAVE_SDHI1_RX,
arch/arm/mach-shmobile/setup-sh7372.c +20 -0
@@ -408,6 +408,26 @@ static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = { .chcr = CHCR_RX(XMIT_SZ_8BIT), .mid_rid = 0x3e, }, { + .slave_id = SHDMA_SLAVE_FLCTL0_TX, + .addr = 0xe6a30050, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0x83, + }, { + .slave_id = SHDMA_SLAVE_FLCTL0_RX, + .addr = 0xe6a30050, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0x83, + }, { + .slave_id = SHDMA_SLAVE_FLCTL1_TX, + .addr = 0xe6a30060, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0x87, + }, { + .slave_id = SHDMA_SLAVE_FLCTL1_RX, + .addr = 0xe6a30060, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0x87, + }, { .slave_id = SHDMA_SLAVE_SDHI0_TX, .addr = 0xe6850030, .chcr = CHCR_TX(XMIT_SZ_16BIT),
Signature · 1 line
1.7.5.4
Simon Horman
AppliedPATCH 1/1 ARM: mach-shmobile: add FLCTL DMA slave definitions for sh7372
[ +CC linux-arm-kernel ]
Quoted 4 lines · Bastian Hecht
SH7372 can use DMA with the FLCTL flash controller. Add required slave IDs and slave descriptors.
Signed-off-by Bastian Hecht <[email protected]>
Thanks, applied to the boards branch of my renesas tree.
Unfortunately its a bit late to get this into 3.7 so I am currently targeting it for 3.8.
Quoted 59 lines
arch/arm/mach-shmobile/include/mach/sh7372.h | 4 ++++ arch/arm/mach-shmobile/setup-sh7372.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)arch/arm/mach-shmobile/include/mach/sh7372.h +4
-0@@ -452,6 +452,10 @@ enum {SHDMA_SLAVE_SCIF5_RX ,SHDMA_SLAVE_SCIF6_TX ,SHDMA_SLAVE_SCIF6_RX , +SHDMA_SLAVE_FLCTL0_TX , +SHDMA_SLAVE_FLCTL0_RX , +SHDMA_SLAVE_FLCTL1_TX , +SHDMA_SLAVE_FLCTL1_RX ,SHDMA_SLAVE_SDHI0_RX ,SHDMA_SLAVE_SDHI0_TX , SHDMA_SLAVE_SDHI1_RX,arch/arm/mach-shmobile/setup-sh7372.c +20
-0@@ -408,6 +408,26 @@ static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = { .chcr = CHCR_RX(XMIT_SZ_8BIT), .mid_rid = 0x3e, }, { + .slave_id = SHDMA_SLAVE_FLCTL0_TX, + .addr = 0xe6a30050, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0x83, + }, { + .slave_id = SHDMA_SLAVE_FLCTL0_RX, + .addr = 0xe6a30050, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0x83, + }, { + .slave_id = SHDMA_SLAVE_FLCTL1_TX, + .addr = 0xe6a30060, + .chcr = CHCR_TX(XMIT_SZ_32BIT), + .mid_rid = 0x87, + }, { + .slave_id = SHDMA_SLAVE_FLCTL1_RX, + .addr = 0xe6a30060, + .chcr = CHCR_RX(XMIT_SZ_32BIT), + .mid_rid = 0x87, + }, { .slave_id = SHDMA_SLAVE_SDHI0_TX, .addr = 0xe6850030, .chcr = CHCR_TX(XMIT_SZ_16BIT),Signature · 6 lines
1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html