diff options
| author | Daniel Mack <zonque@gmail.com> | 2012-10-07 12:19:44 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 03:26:51 -0400 |
| commit | 0384e90b853357d24935c65ba0e1bdd27faa6e58 (patch) | |
| tree | 4ee58ec411a372761b15e9316ca6f827c613308f /include/linux/platform_data | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
spi/mcspi: allow configuration of pin directions
Allow D0 to be an input and D1 to be an output, configurable via
platform data and a new DT property.
Based on a patch from Matus Ujhelyi <matus.ujhelyi@streamunlimited.com>
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/spi-omap2-mcspi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-omap2-mcspi.h b/include/linux/platform_data/spi-omap2-mcspi.h index a357eb26bd25..ce70f7b5a8e1 100644 --- a/include/linux/platform_data/spi-omap2-mcspi.h +++ b/include/linux/platform_data/spi-omap2-mcspi.h | |||
| @@ -7,9 +7,13 @@ | |||
| 7 | 7 | ||
| 8 | #define OMAP4_MCSPI_REG_OFFSET 0x100 | 8 | #define OMAP4_MCSPI_REG_OFFSET 0x100 |
| 9 | 9 | ||
| 10 | #define MCSPI_PINDIR_D0_OUT_D1_IN 0 | ||
| 11 | #define MCSPI_PINDIR_D0_IN_D1_OUT 1 | ||
| 12 | |||
| 10 | struct omap2_mcspi_platform_config { | 13 | struct omap2_mcspi_platform_config { |
| 11 | unsigned short num_cs; | 14 | unsigned short num_cs; |
| 12 | unsigned int regs_offset; | 15 | unsigned int regs_offset; |
| 16 | unsigned int pin_dir:1; | ||
| 13 | }; | 17 | }; |
| 14 | 18 | ||
| 15 | struct omap2_mcspi_dev_attr { | 19 | struct omap2_mcspi_dev_attr { |
