aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-08-13 01:27:44 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:25 -0500
commit23853973d9b76eb8b3cf46157689bc6187e141d9 (patch)
tree3eb97d400cb04c54ed0853b71f4d98415846b7cd /arch/arm
parentcfbc5d1d8fda9d337e912a03502cf77d29870a8e (diff)
spi: davinci: enable GPIO lines to be used as chip selects
Sometimes, the chip selects provided by SPI module are muxed with other functionality and cannot be used in some designs. In such cases, it becomes convenient to use an available GPIO line as chip select. This patch enables the DaVinci SPI driver to treat specific GPIO lines as chip selects based on information provided in platform data. 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')
-rw-r--r--arch/arm/mach-davinci/include/mach/spi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h
index 2cb326e536bb..734d1fb99614 100644
--- a/arch/arm/mach-davinci/include/mach/spi.h
+++ b/arch/arm/mach-davinci/include/mach/spi.h
@@ -19,6 +19,8 @@
19#ifndef __ARCH_ARM_DAVINCI_SPI_H 19#ifndef __ARCH_ARM_DAVINCI_SPI_H
20#define __ARCH_ARM_DAVINCI_SPI_H 20#define __ARCH_ARM_DAVINCI_SPI_H
21 21
22#define SPI_INTERN_CS 0xFF
23
22enum { 24enum {
23 SPI_VERSION_1, /* For DM355/DM365/DM6467 */ 25 SPI_VERSION_1, /* For DM355/DM365/DM6467 */
24 SPI_VERSION_2, /* For DA8xx */ 26 SPI_VERSION_2, /* For DA8xx */
@@ -38,6 +40,7 @@ struct davinci_spi_platform_data {
38 u8 use_dma; 40 u8 use_dma;
39 u8 c2tdelay; 41 u8 c2tdelay;
40 u8 t2cdelay; 42 u8 t2cdelay;
43 u8 *chip_sel;
41}; 44};
42 45
43#endif /* __ARCH_ARM_DAVINCI_SPI_H */ 46#endif /* __ARCH_ARM_DAVINCI_SPI_H */