boot: airoha: speed up spinand flash operations using dma
This patch series greatly improve flash operation speed in u-boot.
The measurement shows:
With DMA:
=> mtd read.benchmark spi-nand0 $loadaddr 0 0x8000000
Reading
134217728 byte(s) (65536 page(s)) at offset 0x00000000
Read speed: 8131kiB/s
Without DMA:
mtd read.benchmark spi-nand0 $loadaddr 0 0x8000000
Reading
134217728 byte(s) (65536 page(s)) at offset 0x00000000
Read speed: 2062kiB/s
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20295
Signed-off-by: Robert Marko <[email protected]>