boot: airoha: speed up spinand flash operations using dma
authorMikhail Kshevetskiy <[email protected]>
Fri, 3 Oct 2025 23:48:43 +0000 (02:48 +0300)
committerRobert Marko <[email protected]>
Thu, 9 Oct 2025 14:37:25 +0000 (16:37 +0200)
commite67ba973d2b43507ed900ec8fdf8187cadbf4918
treed5f081aaede91c04ae219c8586606341e6e2625e
parenta406e38077313bf9af63e6348fbe260a31aa4393
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]>
package/boot/uboot-airoha/patches/202-mtd-spinand-Use-the-spi-mem-dirmap-API.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/203-spi-airoha-remove-unnecessary-operation-adjust_op_si.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/204-spi-airoha-add-support-of-dual-quad-wires-spi-modes-.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/205-spi-airoha-add-dma-support.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/206-spi-airoha-support-of-dualio-quadio-flash-reading-co.patch [new file with mode: 0644]