spi: sh_qspi: Make use of the 32byte FIFO
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 10 Apr 2018 14:43:47 +0000 (16:43 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 11 Apr 2018 21:19:51 +0000 (23:19 +0200)
commitea5512eb095067dda27930246792d2957feb9434
tree986de767a326a218faa5c3bed94c9abc19eb54bd
parent9573db654d1999a1dfde6469782aa8d7cf3d589f
spi: sh_qspi: Make use of the 32byte FIFO

The QSPI controller on RCar Gen2 has 32byte FIFO. Instead of doing
the SPI transmission 1 byte at time, if there is a 32byte chunk of
data to be transferred, fill the FIFO completely and then transfer
the data to/from the FIFO. This increases the SPI NOR access speed
significantly.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
drivers/spi/sh_qspi.c