diff options
author | jacopo mondi <j.mondi@voltaelectronics.com> | 2011-03-02 05:13:22 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-03-27 22:05:29 +0200 |
commit | 08b5ab073d4eb389ffd622f71094cf1c70253c00 (patch) | |
tree | b20b4c8fd0c783e15219b5507811258bece354c9 /drivers/spi/omap3_spi.h | |
parent | f8d6c50ead35574f69b58da1932b1a366940d5fc (diff) | |
download | u-boot-imx-08b5ab073d4eb389ffd622f71094cf1c70253c00.zip u-boot-imx-08b5ab073d4eb389ffd622f71094cf1c70253c00.tar.gz u-boot-imx-08b5ab073d4eb389ffd622f71094cf1c70253c00.tar.bz2 |
omap3_spi: receive transmit mode
Implementation of receive-transmit mode for
omap3 MCSPI.
Introduces full duplex communication, needed by
some spi devices (such as enc28j60).
Signed-off-by: jacopo mondi <mondi@cs.unibo.it> <j.mondi@voltaelectronics.com>
Diffstat (limited to 'drivers/spi/omap3_spi.h')
-rw-r--r-- | drivers/spi/omap3_spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/omap3_spi.h b/drivers/spi/omap3_spi.h index b8e3a4c..0ac801c 100644 --- a/drivers/spi/omap3_spi.h +++ b/drivers/spi/omap3_spi.h @@ -109,6 +109,8 @@ static inline struct omap3_spi_slave *to_omap3_spi(struct spi_slave *slave) return container_of(slave, struct omap3_spi_slave, slave); } +int omap3_spi_txrx(struct spi_slave *slave, unsigned int len, const u8 *txp, + u8 *rxp, unsigned long flags); int omap3_spi_write(struct spi_slave *slave, unsigned int len, const u8 *txp, unsigned long flags); int omap3_spi_read(struct spi_slave *slave, unsigned int len, u8 *rxp, |