]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: cfi_mtd: Use DMA for reads
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 17 Sep 2020 11:23:08 +0000 (16:53 +0530)
committerStefan Roese <sr@denx.de>
Thu, 8 Oct 2020 07:04:41 +0000 (09:04 +0200)
commit3f891a103c5c90c186a5a0b1584dfa39e8688b8f
treefc764bfed0cf22b47a8148fb7d15f3bd664e937c
parent8995a86cd6fa6e189c03a638da4a8ef9755d3738
mtd: cfi_mtd: Use DMA for reads

When possible use DMA for reading from CFI flash, this provides upto 5x
improvement in read performance with high speed CFI compliant flashes
like HyperFlash.

Code will gracefully fallback to CPU copy when DMA is unavailable.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_mtd.c