spi: davinci: add support for wait enable timeouts
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 09:37:38 +0000 (14:37 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:27 +0000 (18:08 +0530)
commit7abbf23c5903e14b0cff1cdeab906eab164be767
treeec2fd9962d900f334630ec5a9c999da1c8bf8fb5
parentfd764463fe28ac53371565f851240e74775fb1aa
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>
arch/arm/mach-davinci/include/mach/spi.h
drivers/spi/davinci_spi.c