aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/spi.h
diff options
context:
space:
mode:
authorMichael Williamson <michael.williamson@criticallink.com>2011-02-08 07:59:55 -0500
committerKevin Hilman <khilman@ti.com>2011-02-28 14:53:29 -0800
commit2e3e2a5e4fef586ae9b1cfef42823c0aef1797f4 (patch)
tree9b6619631c0798feff53c9f0d907abe2cf3b6394 /arch/arm/mach-davinci/include/mach/spi.h
parenta42f18c96da2220eaad603a7586d43cdd12d9f9f (diff)
downloadkernel_samsung_smdk4412-2e3e2a5e4fef586ae9b1cfef42823c0aef1797f4.zip
kernel_samsung_smdk4412-2e3e2a5e4fef586ae9b1cfef42823c0aef1797f4.tar.gz
kernel_samsung_smdk4412-2e3e2a5e4fef586ae9b1cfef42823c0aef1797f4.tar.bz2
davinci: spi: move event queue parameter to platform data
For DMA operation, the davinci spi driver needs an event queue number. Currently, this number is passed as a IORESOURCE_DMA. This is not correct, as the event queue is not a DMA channel. Pass the event queue via the platform data structure instead. On dm355 and dm365, move the eventq assignment for spi0 out of resources array and into platform data. Signed-off-by: Michael Williamson <michael.williamson@criticallink.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/spi.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/spi.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h
index 38f4da5..7af305b 100644
--- a/arch/arm/mach-davinci/include/mach/spi.h
+++ b/arch/arm/mach-davinci/include/mach/spi.h
@@ -19,6 +19,8 @@
#ifndef __ARCH_ARM_DAVINCI_SPI_H
#define __ARCH_ARM_DAVINCI_SPI_H
+#include <mach/edma.h>
+
#define SPI_INTERN_CS 0xFF
enum {
@@ -39,13 +41,16 @@ enum {
* to populate if all chip-selects are internal.
* @cshold_bug: set this to true if the SPI controller on your chip requires
* a write to CSHOLD bit in between transfers (like in DM355).
+ * @dma_event_q: DMA event queue to use if SPI_IO_TYPE_DMA is used for any
+ * device on the bus.
*/
struct davinci_spi_platform_data {
- u8 version;
- u8 num_chipselect;
- u8 intr_line;
- u8 *chip_sel;
- bool cshold_bug;
+ u8 version;
+ u8 num_chipselect;
+ u8 intr_line;
+ u8 *chip_sel;
+ bool cshold_bug;
+ enum dma_event_q dma_event_q;
};
/**