summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/spi.h
diff options
context:
space:
mode:
authorBrian Niebuhr2010-09-02 13:22:06 +0200
committerSekhar Nori2010-11-18 14:08:30 +0100
commite0d205e9914476e96596c5339fa440fb314ef03b (patch)
tree73e66099f725499b8adb145b8835d90add228c8e /arch/arm/mach-davinci/include/mach/spi.h
parentspi: davinci: simplify poll mode transfers (diff)
downloadkernel-qcow2-linux-e0d205e9914476e96596c5339fa440fb314ef03b.tar.gz
kernel-qcow2-linux-e0d205e9914476e96596c5339fa440fb314ef03b.tar.xz
kernel-qcow2-linux-e0d205e9914476e96596c5339fa440fb314ef03b.zip
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>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/spi.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/spi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h
index e68afe23885b..ab45b89a0c5f 100644
--- a/arch/arm/mach-davinci/include/mach/spi.h
+++ b/arch/arm/mach-davinci/include/mach/spi.h
@@ -30,6 +30,7 @@ struct davinci_spi_platform_data {
u8 version;
u8 num_chipselect;
u8 clk_internal;
+ u8 intr_line;
u8 use_dma;
u8 *chip_sel;
};
@@ -38,6 +39,9 @@ struct davinci_spi_config {
u8 wdelay;
u8 odd_parity;
u8 parity_enable;
+#define SPI_IO_TYPE_INTR 0
+#define SPI_IO_TYPE_POLL 1
+ u8 io_type;
u8 timer_disable;
u8 c2tdelay;
u8 t2cdelay;