All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux  0/3] ASPEED SPI driver support for dual IO mode
@ 2017-01-10  1:05 Robert Lippert
  2017-01-10  1:05 ` [PATCH linux 1/3] mtd: spi-nor: add SPI_NOR_DUAL_READ to mx66l51235l Robert Lippert
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Robert Lippert @ 2017-01-10  1:05 UTC (permalink / raw)
  To: openbmc; +Cc: clg, Robert Lippert


Adds support for dual IO SPI mode.  This speeds up SPI accesses, dropping
time to dump an entire 64MB Macronix chip from ~12s to ~6s using:
	dd if=/dev/mtdblock0 bs=64MB count=1 of=/dev/null

The dual IO bit mode should not depend on any board-specific properties
as it uses the same IO lines as single bit mode.  Only issue could be
if a board used a one-way level tranlator or mux on the MOSI line
but that seems unlikely to me.

Tested on Zaius board with AST2500 chip, not tested on AST2400 but I
expect it to work since registers are identical.

Note dropped TODO about quad mode since ASPEED SPI controller does
not support quad mode.


Robert Lippert (3):
  mtd: spi-nor: add SPI_NOR_DUAL_READ to mx66l51235l
  mtd: spi-nor: aspeed: add support for SPI dual IO read mode
  mtd: spi-nor: aspeed: fix DMA access on AST2500

 drivers/mtd/spi-nor/aspeed-smc.c | 30 +++++++++++++++++++++++-------
 drivers/mtd/spi-nor/spi-nor.c    |  2 +-
 2 files changed, 24 insertions(+), 8 deletions(-)

-- 
2.11.0.390.gc69c2f50cf-goog

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-01-11 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-10  1:05 [PATCH linux 0/3] ASPEED SPI driver support for dual IO mode Robert Lippert
2017-01-10  1:05 ` [PATCH linux 1/3] mtd: spi-nor: add SPI_NOR_DUAL_READ to mx66l51235l Robert Lippert
2017-01-10  7:54   ` Cédric Le Goater
2017-01-10 22:55     ` Rob Lippert
2017-01-10  1:05 ` [PATCH linux 2/3] mtd: spi-nor: aspeed: add support for SPI dual IO read mode Robert Lippert
2017-01-10  8:10   ` Cédric Le Goater
2017-01-10 22:54     ` Rob Lippert
2017-01-11 11:43       ` Cédric Le Goater
2017-01-11 18:34         ` Rob Lippert
2017-01-11 18:50           ` Cédric Le Goater
2017-01-10  1:05 ` [PATCH linux 3/3] mtd: spi-nor: aspeed: fix DMA access on AST2500 Robert Lippert
2017-01-10  7:54   ` Cédric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.