Skip to contentSkip to conversation

ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype

PATCH Superseded Magnus Damm 1 participant 1 message Jun 10, 2014 SuperH

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype

ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype

[PATCH 01/07] mmc: sdhi: enable .dma_rx_offset for platform prototype [PATCH 02/07] DMA: shdma: 40-bit address prototype
[PATCH 03/07] ARM: shmobile: Lager SYS-DMAC prototype [PATCH 04/07] ARM: shmobile: Lager SYS-DMAC and MMCIF prototype [PATCH 05/07] ARM: shmobile: Lager SYS-DMAC and SDHI prototype [PATCH 06/07] ARM: shmobile: Koelsch SYS-DMAC prototype [PATCH 07/07] ARM: shmobile: Koelsch SYS-DMAC and SDHI prototype

These patches add DMAC prototype support for MMCIF and SDHI on Lager and SDHI on Koelsch. 40-bit physical address support in the DMAC has been hacked in as a prototype. DMA support for the SDHI driver has also been modified on a prototype level.

Written to show how to make use of platform devices for DMA support until the DT bindings for the DMA hardware have been stabilized.

Not for upstream merge.

Depends on the following public SDHI patches by Morimoto-san:
[PATCH] mmc: block: add block number limitation flag for lultiple block read [PATCH] mmc: sdhi: tidyup mmc_data setting for R-Car SDHI [PATCH] mmc: tmio: care about DMA tx/rx addr offset

---

Written on top of renesas-devel-v3.15-20140609v3

 arch/arm/mach-shmobile/board-koelsch-reference.c |  154 +++++++++++++++++++++
 arch/arm/mach-shmobile/board-lager-reference.c   |  155 +++++++++++++++++++++-
 drivers/dma/sh/shdma.h                           |    4 
 drivers/dma/sh/shdmac.c                          |   48 +++++-
 drivers/mmc/host/sh_mobile_sdhi.c                |    1 
 include/linux/mmc/sh_mobile_sdhi.h               |    1 
 include/linux/sh_dma.h                           |    2 
 7 files changed, 355 insertions(+), 10 deletions(-)