ARM: mach-shmobile: Enable DMAEngine for MMCIF on AG5EVM
Magnus Damm
maintainerPATCH 1/1 ARM: mach-shmobile: Enable DMAEngine for MMCIF on AG5EVM
From: Magnus Damm <[email protected]>
Simply add MMCIF slave ids for RX and TX to enable DMA Engine support for the AG5EVM board.
Signed-off-by Magnus Damm <[email protected]>
---
Has a build time dependency on the patch:
"[PATCH] ARM: mach-shmobile: sh73a0 DMA Engine support for SY-DMAC"
arch/arm/mach-shmobile/board-ag5evm.c | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/mach-shmobile/board-ag5evm.c +9 -0
@@ -158,10 +158,19 @@ static struct resource sh_mmcif_resource }, }; +static struct sh_mmcif_dma sh_mmcif_dma = { + .chan_priv_rx = { + .slave_id =SHDMA_SLAVE_MMCIF_RX , + }, + .chan_priv_tx = { + .slave_id =SHDMA_SLAVE_MMCIF_TX , + }, +};static struct sh_mmcif_plat_data sh_mmcif_platdata = { .sup_pclk =0 , .ocr =MMC_VDD_165_195 , .caps =MMC_CAP_8_BIT_DATA |MMC_CAP_NONREMOVABLE , + .dma = &sh_mmcif_dma, };static struct platform_device mmc_device = {
Magnus Damm
maintainerPATCH 1/1 ARM: mach-shmobile: Enable DMAEngine for SDHI on AG5EVM
From: Magnus Damm <[email protected]>
Add SDHI0 and SDHI1 slave ids for RX and TX to enable DMA Engine support for SDHI on the AG5EVM board.
Signed-off-by Magnus Damm <[email protected]>
---
Has a build time dependency on the patch:
"[PATCH] ARM: mach-shmobile: sh73a0 DMA Engine support for SY-DMAC"
arch/arm/mach-shmobile/board-ag5evm.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/mach-shmobile/board-ag5evm.c +4 -0
@@ -339,6 +339,8 @@ static struct platform_device mipidsi0_d };static struct sh_mobile_sdhi_info sdhi0_info = { + .dma_slave_tx =SHDMA_SLAVE_SDHI0_TX , + .dma_slave_rx =SHDMA_SLAVE_SDHI0_RX , .tmio_caps =MMC_CAP_SD_HIGHSPEED , .tmio_ocr_mask =MMC_VDD_27_28 |MMC_VDD_28_29 , };
@@ -380,6 +382,8 @@ void ag5evm_sdhi1_set_pwr(struct platfor }static struct sh_mobile_sdhi_info sh_sdhi1_platdata = { + .dma_slave_tx =SHDMA_SLAVE_SDHI1_TX , + .dma_slave_rx =SHDMA_SLAVE_SDHI1_RX , .tmio_flags =TMIO_MMC_WRPROTECT_DISABLE , .tmio_caps =MMC_CAP_NONREMOVABLE , .tmio_ocr_mask =MMC_VDD_32_33 |MMC_VDD_33_34 ,