Skip to content

mmc: fsl_esdhc: add ADMA2 support

Michael Walle u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mmc: fsl_esdhc: simplify 64bit check for SDMA transfersdrivers/mmc/fsl_esdhc.c+6 -230 replies
2/6mmc: fsl_esdhc: use dma-mapping APIdrivers/mmc/fsl_esdhc.c+14 -350 replies
3/6mmc: fsl_esdhc: simplify esdhc_setup_data()drivers/mmc/fsl_esdhc.c+42 -270 replies
4/6mmc: fsl_esdhc: replace most #ifdefs by IS_ENABLED()drivers/mmc/fsl_esdhc.c+60 -680 replies
5/6mmc: sdhci: move the ADMA2 table handling into own moduledrivers/mmc/Kconfig drivers/mmc/Makefile drivers/mmc/sdhci-adma.c +2 more+92 -580 replies
6/6mmc: fsl_esdhc: add ADMA2 supportdrivers/mmc/Kconfig drivers/mmc/fsl_esdhc.c include/fsl_esdhc.h+67 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] mmc: fsl_esdhc: add ADMA2 support

Add ADMA2 support mainly because it supports 64bit DMA addresses. These are for example used if you use EFI on a LS1028A board which has more than 2GB of RAM, because only the lower 2GB are mapped into the lower 32bit address space.

Patches 1-4 clean the fsl_esdhc driver up. Patch 5 moves ADMA2 table handling code out of the sdhci core code. Patch 6 finally adds the ADMA2 support to the fsl_esdhc driver.

This was tested on a custom board LS1028A board.

A passing travis-ci build is available at:
https://travis-ci.org/github/mwalle/u-boot/builds/729431087

Michael Walle (6):
mmc: fsl_esdhc: simplify 64bit check for SDMA transfers
mmc: fsl_esdhc: use dma-mapping API
mmc: fsl_esdhc: simplify esdhc_setup_data()
mmc: fsl_esdhc: replace most #ifdefs by IS_ENABLED()
mmc: sdhci: move the ADMA2 table handling into own module
mmc: fsl_esdhc: add ADMA2 support

 drivers/mmc/Kconfig      |  13 ++
 drivers/mmc/Makefile     |   1 +
 drivers/mmc/fsl_esdhc.c  | 267 ++++++++++++++++++++-------------------
 drivers/mmc/sdhci-adma.c |  73 +++++++++++
 drivers/mmc/sdhci.c      |  63 ++-------
 include/fsl_esdhc.h      |  14 ++
 include/sdhci.h          |   8 +-
 7 files changed, 252 insertions(+), 187 deletions(-)
 create mode 100644 drivers/mmc/sdhci-adma.c
Signature · 1 line
2.20.1