diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-08-16 05:35:51 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 08:08:26 -0500 |
commit | 53a31b07c5aea4001bbb36ddd5ef2addffc7ccbd (patch) | |
tree | d451eb203e78e4e10cb0d4fbc8355d5f6053a834 /arch/arm/mach-davinci/include/mach | |
parent | 472880c73da124b6cb5cbc31a36754aa62935afe (diff) |
spi: davinci: make chip-slect specific parameters really chip-select specific
Some chip-select specific paramterers like wdelay, parity, usage of
chip-select timers (and the actual timer values) are included in
platform data forcing the same behaviour across all chip-selects.
Create a new davinci_spi_config data structure which can be passed
along using controller_data member of spi_device data structure
on a per-device basis.
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')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/spi.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/mach-davinci/include/mach/spi.h b/arch/arm/mach-davinci/include/mach/spi.h index fe699140269c..29c19c425b02 100644 --- a/arch/arm/mach-davinci/include/mach/spi.h +++ b/arch/arm/mach-davinci/include/mach/spi.h | |||
@@ -29,17 +29,20 @@ enum { | |||
29 | struct davinci_spi_platform_data { | 29 | struct davinci_spi_platform_data { |
30 | u8 version; | 30 | u8 version; |
31 | u8 num_chipselect; | 31 | u8 num_chipselect; |
32 | u8 wdelay; | ||
33 | u8 odd_parity; | ||
34 | u8 parity_enable; | ||
35 | u8 timer_disable; | ||
36 | u8 clk_internal; | 32 | u8 clk_internal; |
37 | u8 intr_level; | 33 | u8 intr_level; |
38 | u8 poll_mode; | 34 | u8 poll_mode; |
39 | u8 use_dma; | 35 | u8 use_dma; |
36 | u8 *chip_sel; | ||
37 | }; | ||
38 | |||
39 | struct davinci_spi_config { | ||
40 | u8 wdelay; | ||
41 | u8 odd_parity; | ||
42 | u8 parity_enable; | ||
43 | u8 timer_disable; | ||
40 | u8 c2tdelay; | 44 | u8 c2tdelay; |
41 | u8 t2cdelay; | 45 | u8 t2cdelay; |
42 | u8 *chip_sel; | ||
43 | }; | 46 | }; |
44 | 47 | ||
45 | #endif /* __ARCH_ARM_DAVINCI_SPI_H */ | 48 | #endif /* __ARCH_ARM_DAVINCI_SPI_H */ |