diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/spi-clps711x.h | 21 | ||||
| -rw-r--r-- | include/linux/platform_data/spi-omap2-mcspi.h | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-clps711x.h b/include/linux/platform_data/spi-clps711x.h new file mode 100644 index 000000000000..301956e63143 --- /dev/null +++ b/include/linux/platform_data/spi-clps711x.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * CLPS711X SPI bus driver definitions | ||
| 3 | * | ||
| 4 | * Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H | ||
| 13 | #define ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H | ||
| 14 | |||
| 15 | /* Board specific platform_data */ | ||
| 16 | struct spi_clps711x_pdata { | ||
| 17 | int *chipselect; /* Array of GPIO-numbers */ | ||
| 18 | int num_chipselect; /* Total count of GPIOs */ | ||
| 19 | }; | ||
| 20 | |||
| 21 | #endif | ||
diff --git a/include/linux/platform_data/spi-omap2-mcspi.h b/include/linux/platform_data/spi-omap2-mcspi.h index a357eb26bd25..a65572d53211 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_IN_D1_OUT 0 | ||
| 11 | #define MCSPI_PINDIR_D0_OUT_D1_IN 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 { |
