diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-08-19 15:07:38 +0530 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 18:38:27 +0530 |
commit | 7abbf23c5903e14b0cff1cdeab906eab164be767 (patch) | |
tree | ec2fd9962d900f334630ec5a9c999da1c8bf8fb5 /arch | |
parent | fd764463fe28ac53371565f851240e74775fb1aa (diff) | |
download | linux-stable-7abbf23c5903e14b0cff1cdeab906eab164be767.tar.gz linux-stable-7abbf23c5903e14b0cff1cdeab906eab164be767.tar.bz2 linux-stable-7abbf23c5903e14b0cff1cdeab906eab164be767.zip |
spi: davinci: add support for wait enable timeouts
Just enabling WAITENA in SPIFMTn register waits for the
enable signal from the slave indefinitely. Allow support
for finite waiting by adding support for c2e delay
(maximum time for addressed slave to respond) and t2e
delay (maximum time for slave to respond after transmit
data finished).
While at it, modify the T2C and C2T defines by prepending
the register name as is the convention followed for other
register field elsewhere in the driver.
Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h index 29c19c425b02..483b055da440 100644 --- a/arch/arm/mach-davinci/include/mach/spi.h +++ b/arch/arm/mach-davinci/include/mach/spi.h @@ -43,6 +43,8 @@ struct davinci_spi_config { u8 timer_disable; u8 c2tdelay; u8 t2cdelay; + u8 t2edelay; + u8 c2edelay; }; #endif /* __ARCH_ARM_DAVINCI_SPI_H */ |