mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
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>
This commit is contained in:
parent
7bd1c59bdb
commit
518b0afc33
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user