summaryrefslogtreecommitdiffstats
path: root/include/linux/spi/dw_spi.h
diff options
context:
space:
mode:
authorFeng Tang2010-01-20 21:49:45 +0100
committerGrant Likely2010-01-20 21:49:45 +0100
commit552e450929a7298cc8834fd2824a60b2e914f70e (patch)
tree1b9568370d1b40f23dd4d73765e98ff74665eb07 /include/linux/spi/dw_spi.h
parentspi/dw_spi: add a missed dw_spi_remove_host() in exit sequence (diff)
downloadkernel-qcow2-linux-552e450929a7298cc8834fd2824a60b2e914f70e.tar.gz
kernel-qcow2-linux-552e450929a7298cc8834fd2824a60b2e914f70e.tar.xz
kernel-qcow2-linux-552e450929a7298cc8834fd2824a60b2e914f70e.zip
spi/dw_spi: refine the IRQ mode working flow
Now dw_spi core fully supports 3 transfer modes: pure polling, DMA and IRQ mode. IRQ mode will use the FIFO half empty as the IRQ trigger, so each interface driver need set the fifo_len, so that core driver can handle it properly Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/spi/dw_spi.h')
-rw-r--r--include/linux/spi/dw_spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h
index 51b3e771a9a3..1a127a31e017 100644
--- a/include/linux/spi/dw_spi.h
+++ b/include/linux/spi/dw_spi.h
@@ -90,6 +90,7 @@ struct dw_spi {
unsigned long paddr;
u32 iolen;
int irq;
+ u32 fifo_len; /* depth of the FIFO buffer */
u32 max_freq; /* max bus freq supported */
u16 bus_num;