]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops
authorIan Roberts <ian.roberts@timesys.com>
Mon, 22 Apr 2024 19:00:02 +0000 (15:00 -0400)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 26 Apr 2024 06:30:48 +0000 (15:30 +0900)
commit74755c1fed1b09526b0993c729fe3ae909752fbd
tree3fef3097733358b8def32d09abe625c73d2da27e
parentd097f9e1299a3bdb7de468f0d9bbc63932f461cd
mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

Add this hook so that it can be overridden with driver specific
implementations. We also let the original sdhci_adma_write_desc()
accept &desc so that the function can set its new value. Then export
the function so that it could be reused by driver's specific
implementations.

The above is a port of Linux kernel commit 54552e4948cbf

In addition, allow drivers to allocate their own ADMA descriptor
tables if additional space is required.

Finally, fix the assignment of adma_addr to fix compiler warning
on 64-bit platforms that still use 32-bit DMA addressing.

Co-developed-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Co-developed-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Ian Roberts <ian.roberts@timesys.com>
drivers/mmc/fsl_esdhc.c
drivers/mmc/sdhci-adma.c
drivers/mmc/sdhci.c
include/sdhci.h