From cc1182beea3712c948dd91d3877cacbbdab3d6ae Mon Sep 17 00:00:00 2001 From: ajoy Date: Sat, 17 Nov 2012 21:10:15 +0000 Subject: OMAP3 SPI : Fixed bugs related to SPI transfer Added posted writes (read after writes) to effect the change immediately for channel confiuration and channel enable register Disable the channel to purge receieve data in TX_ONLY mode transfer otherwise rx data will get affected by the next immediate RX_ONLY mode transfer Wait for the EOT bit to be set after last byte has been loaded to TX shift register in the the TX_ONLY mode.This ensures TX data has been completely shifted out Disable the channel in RX_ONLY mode before reading the last data from RXX register to prevent the SPI slave to transmit next word Signed-off-by: Ajoy Kumar Das Cc: Tom Rini Cc: jacopo mondi --- drivers/spi/omap3_spi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/spi/omap3_spi.h') diff --git a/drivers/spi/omap3_spi.h b/drivers/spi/omap3_spi.h index bffa43cb6c..5e00208c5d 100644 --- a/drivers/spi/omap3_spi.h +++ b/drivers/spi/omap3_spi.h @@ -99,6 +99,7 @@ struct mcspi { #define OMAP3_MCSPI_CHSTAT_EOT (1 << 2) #define OMAP3_MCSPI_CHCTRL_EN (1 << 0) +#define OMAP3_MCSPI_CHCTRL_DIS (0 << 0) #define OMAP3_MCSPI_WAKEUPENABLE_WKEN (1 << 0) -- cgit