summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorHiep Cao Minh2013-10-10 10:14:03 +0200
committerMark Brown2013-10-10 12:23:25 +0200
commitcb52c673f8adc4a1cba7b645ff5375b57dae21fa (patch)
treec9de9abf82503ac4d3bc0b1024728bccac844c38 /include/linux/spi
parentspi: rcar: add Renesas QSPI support on RSPI (diff)
downloadkernel-qcow2-linux-cb52c673f8adc4a1cba7b645ff5375b57dae21fa.tar.gz
kernel-qcow2-linux-cb52c673f8adc4a1cba7b645ff5375b57dae21fa.tar.xz
kernel-qcow2-linux-cb52c673f8adc4a1cba7b645ff5375b57dae21fa.zip
spi/rspi: Fix 8bit data access, clear buffer
The R8A7790 has QSPI module which added into RSPI together. The transmit or receive data should be read from or written to with the longword-, word-, or byte-access width. Modify word- access to byte-access. In 16-bit data register, QSPI send or receive datas access from high 8-bit while RSPI send or receive datas access from low 8-bit on single mode. Modify to reset transmit-receive buffer data and reading dummy after data are transmited. RSPI has a TXMD bit on control register(SPCR) to set transmit-only mode when transmit data or Full-duplex synchronous mode when receive data. In QSPI the TXMD bit is not supported, so after transmit data, dummy should be read and before transmit or receive data the bufer register should be reset. This driver is the implementation of send and receive pio only, DMA is not supported at this time. Without this patch, it will occur error when transmit and receive Signed-off-by: Hiep Cao Minh <cm-hiep@jinso.co.jp> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/spi')
0 files changed, 0 insertions, 0 deletions