]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
spi: ti_qspi: compile out spi_flash_copy_mmap when CONFIG_DMA is defined
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 15 Feb 2016 10:01:40 +0000 (15:31 +0530)
committerJagan Teki <jteki@openedev.com>
Tue, 23 Feb 2016 10:44:46 +0000 (16:14 +0530)
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>
drivers/spi/ti_qspi.c

index b5c974ce3839b9af2f9043e993dd4b0b4087c713..409a5c41ab9f36a6e5aac45b1532aaa3fa6a5416 100644 (file)
@@ -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);