mtd: hyperbus: hbmc-am654: Add DMA support for reads
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 24 Sep 2020 08:12:14 +0000 (13:42 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 30 Sep 2020 08:05:18 +0000 (13:35 +0530)
commit00c9cf49a6136e0839eaa2c74fbd58c607318b2c
tree91979c263c49e349dc3ef8d38301be3aef65bd85
parent992df3bb35a1004f86126d2f80c83450b383f7f4
mtd: hyperbus: hbmc-am654: Add DMA support for reads

AM654 HyperBus controller provides MMIO interface to read data from
flash. So add DMA memcpy support for reading data over MMIO interface.
This provides 5x improvement in throughput and reduces CPU usage as
well.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200924081214.16934-5-vigneshr@ti.com
drivers/mtd/hyperbus/hbmc-am654.c