summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-02-15 15:31:40 +0530
committerJagan Teki <jteki@openedev.com>2016-02-23 16:14:46 +0530
commit518b0afc33b09160afb0f6ac33c5de499c2b95d9 (patch)
treebb293b6a48ba2648cc64d971d5588c23c3e38c25
parent7bd1c59bdb5ccf5a0fbd8522fd35b9db1a450fb3 (diff)
downloadu-boot-imx-518b0afc33b09160afb0f6ac33c5de499c2b95d9.zip
u-boot-imx-518b0afc33b09160afb0f6ac33c5de499c2b95d9.tar.gz
u-boot-imx-518b0afc33b09160afb0f6ac33c5de499c2b95d9.tar.bz2
spi: ti_qspi: compile out spi_flash_copy_mmap when CONFIG_DMA is defined
When CONFIG_DMA is defined the default spi_flash_copy_mmap() can handle dma memory copy, so compile out spi_flash_copy_mmap() from ti_qspi driver when CONFIG_DMA config is defined. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagan Teki <jteki@openedev.com>
-rw-r--r--drivers/spi/ti_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index b5c974c..409a5c4 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -277,7 +277,7 @@ static int __ti_qspi_xfer(struct ti_qspi_priv *priv, unsigned int bitlen,
}
/* TODO: control from sf layer to here through dm-spi */
-#ifdef CONFIG_TI_EDMA3
+#if defined(CONFIG_TI_EDMA3) && !defined(CONFIG_DMA)
void spi_flash_copy_mmap(void *data, void *offset, size_t len)
{
unsigned int addr = (unsigned int) (data);