aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-19 15:07:38 +0530
committerSekhar Nori <nsekhar@ti.com>2010-11-18 18:38:27 +0530
commit7abbf23c5903e14b0cff1cdeab906eab164be767 (patch)
treeec2fd9962d900f334630ec5a9c999da1c8bf8fb5 /arch
parentfd764463fe28ac53371565f851240e74775fb1aa (diff)
downloadkernel_samsung_espresso10-7abbf23c5903e14b0cff1cdeab906eab164be767.zip
kernel_samsung_espresso10-7abbf23c5903e14b0cff1cdeab906eab164be767.tar.gz
kernel_samsung_espresso10-7abbf23c5903e14b0cff1cdeab906eab164be767.tar.bz2
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.h2
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 29c19c4..483b055 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 */