MX28: SPI: Add DMA transfer support
authorMarek Vasut <marex@denx.de>
Mon, 9 Jul 2012 00:48:33 +0000 (00:48 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:16 +0000 (14:58 +0200)
commit7c5e6f7a5ddc1643300ce0be2a2a8283f4a797f7
treec28aa6ade5a9ad28972de815648f82104796942c
parentccd4d5a0d484c929bf78772f0a5f8dfd91e078ab
MX28: SPI: Add DMA transfer support

The DMA transfers happen only if the transfered data are larger
than 512 bytes. Otherwise PIO is used. This is a small speed
optimization.

The DMA transfer doesn't work if unaligned transfer is requested
due to the limitation of the DMA controller. This has to be fixed
by introducing generic bounce buffer. Therefore the DMA feature
is now disabled by default.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
drivers/spi/mxs_spi.c