summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2015-08-17 13:29:54 +0530
committerJagan Teki <jteki@openedev.com>2015-08-17 23:29:14 +0530
commit146bad96191753f1918bfa4dca75d20e03fc63b2 (patch)
tree88aa8eca08516457d4c4b4e3b694f74e640c28a4 /include/spi.h
parent5b3b0d687ef927fff56d6c2af1f2a1134e6ee31c (diff)
sf: ops: Add spi_flash_copy_mmap function
When doing a memory mapped copy we may have DMA available and thus need to have this copy abstracted so that the driver can do it, rather than a simple memcpy. Signed-off-by: Tom Rini <trini@ti.com> Signed-off-by: Vignesh R <vigneshr@ti.com> Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h
index 18362364cf..51fdfd6d73 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -272,6 +272,9 @@ int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen);
int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
void *din, unsigned long flags);
+/* Copy memory mapped data */
+void spi_flash_copy_mmap(void *data, void *offset, size_t len);
+
/**
* Determine if a SPI chipselect is valid.
* This function is provided by the board if the low-level SPI driver