• Jonas Gorski's avatar
    spi/bcm63xx-hsspi: add support for dual spi read/write · f4d86223
    Jonas Gorski authored
    Add support for dual read/writes on spi-bcm63xx-hsspi. This has been
    tested with a s25fl129p1 dual read capable spi flash, with a nice speed
    improvement:
    
    serial read:
    
    root@OpenWrt:/# time dd if=/dev/mtd4 of=/dev/null bs=8192
    2032+0 records in
    2032+0 records out
    real    0m 4.39s
    user    0m 0.00s
    sys     0m 1.55s
    
    dual read:
    
    root@OpenWrt:/# time dd if=/dev/mtd4 of=/dev/null bs=8192
    2032+0 records in
    2032+0 records out
    real    0m 3.09s
    user    0m 0.00s
    sys     0m 1.56s
    Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    f4d86223
spi-bcm63xx-hsspi.c 12.5 KB