forked from svenkatr/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: m25p80: add support of dual and quad spi protocols to all commands
Before this patch, m25p80_read() supported few SPI protocols: - regular SPI 1-1-1 - SPI Dual Output 1-1-2 - SPI Quad Output 1-1-4 On the other hand, all other m25p80_*() hooks only supported SPI 1-1-1. However once their Quad mode enabled, Micron and Macronix spi-nor memories expect all commands to use the SPI 4-4-4 protocol. Also, once their Dual mode enabled, Micron spi-nor memories expect all commands to use the SPI-2-2-2 protocol. So this patch adds support to all currently existing SPI protocols to cover as many protocols as possible. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
- Loading branch information
Cyrille Pitchen
authored and
Nicolas Ferre
committed
Nov 27, 2015
1 parent
da74455
commit 1bbf484
Showing
1 changed file
with
212 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters