]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spi: exynos: Support word transfers
authorRajeshwari Shinde <rajeshwari.s@samsung.com>
Tue, 8 Oct 2013 10:50:06 +0000 (16:20 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 8 Oct 2013 12:48:12 +0000 (18:18 +0530)
commitc4a796329d00ce46de6b5afeb1fdabec82830677
tree01b2274734a04752e2d0fc139de7f3a726721e4b
parent120af1572a3647bb87eff2f62dd8f8a919ee71f0
spi: exynos: Support word transfers

Since SPI register access is so expensive, it is worth transferring data
a word at a time if we can. This complicates the driver unfortunately.

Use the byte-swapping feature to avoid having to convert to/from big
endian in software.

This change increases speed from about 2MB/s to about 4.5MB/s.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
arch/arm/include/asm/arch-exynos/spi.h
drivers/spi/exynos_spi.c