]> git.ipfire.org Git - people/ms/u-boot.git/commit
sf: spi_flash: use dma to copy data from mmap region if platform supports
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 15 Feb 2016 10:01:39 +0000 (15:31 +0530)
committerJagan Teki <jteki@openedev.com>
Tue, 23 Feb 2016 10:44:46 +0000 (16:14 +0530)
commit7bd1c59bdb5ccf5a0fbd8522fd35b9db1a450fb3
treec01701562e8cd4ddfc956dd5227da9c5d2b81c6c
parent58da672d49d03e9d7945901e59b9a1174b4f1f67
sf: spi_flash: use dma to copy data from mmap region if platform supports

Add dma memcpy api to the default spi_flash_copy_mmap(), so that
dma will be used to copy data when CONFIG_DMA is defined for the
platform.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/spi_flash.c