]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00303418 mtd: fsl-quadspi: set AHB transfer size to the maximum value
authorAllen Xu <b45815@freescale.com>
Fri, 14 Mar 2014 15:48:21 +0000 (10:48 -0500)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:55 +0000 (21:16 -0600)
commit8536babb013a142b5d8464f977ac1282ed3a907c
tree1e1128635348379cef06afc9da78c7577b969010
parentb1acb92112ee8b847497140dd4a9a4a03eb7f5e2
ENGR00303418 mtd: fsl-quadspi: set AHB transfer size to the maximum value

Set AHB transfer size to 1K which significantly improved the read
performance.

Add ahb_buf_size field in fsl_qspi_devtype_data to denote the size for
different SoC.

Before:

root@imx6qdlsolo:~# dd if=/dev/mtd1 of=/dev/null bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 0.472183 s, 35.5 MB/s

After:

root@imx6qdlsolo:~# dd if=/dev/mtd1 of=/dev/null bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 0.369439 s, 45.4 MB/s

Signed-off-by: Allen Xu <b45815@freescale.com>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/spi-nor/fsl-quadspi.c