mtd: spi-nor: introduce Double Transfer Rate (DTR) SPI protocols
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 25 Apr 2017 20:08:48 +0000 (22:08 +0200)
committerCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Mon, 15 May 2017 19:56:17 +0000 (21:56 +0200)
commit15f55331527b1422eae683477f8a31fdfae93316
tree3b658f051371ecd7265970a26ca1522b16ecf48c
parent138f5dc61b63c3e89dc133c4faed6b6d0a91b7fd
mtd: spi-nor: introduce Double Transfer Rate (DTR) SPI protocols

This patch introduces support to Double Transfer Rate (DTR) SPI protocols.
DTR is used only for Fast Read operations.

According to manufacturer datasheets, whatever the number of I/O lines
used during instruction (x) and address/mode/dummy (y) clock cycles, DTR
is used only during data (z) clock cycles of SPI x-y-z protocols.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h