]> git.baikalelectronics.ru Git - uboot.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)
commit746cffa910876492f95bf4c1b0b1e16358f29e91
treefc764bfed0cf22b47a8148fb7d15f3bd664e937c
parente6761bd02308af1a3faa4380e28b1e2532ce70d9
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