]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: davinci: add support for interrupt mode
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 2 Sep 2010 11:22:06 +0000 (16:52 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:30 +0000 (18:38 +0530)
commite0d205e9914476e96596c5339fa440fb314ef03b
tree73e66099f725499b8adb145b8835d90add228c8e
parent839c996ca8dd56f9ea80d7fc0c8b18b01394c82a
spi: davinci: add support for interrupt mode

Add support for SPI interrupt mode operation.

Define a per chip-select "io type" variable which
specifies if the transfers on this chip-select should
happen in interrupt mode or polled mode.

Introduce a new function davinci_spi_process_events()
to help consolidate the code between interrupt mode
processing and polled mode processing.

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