aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/spi/mmc_spi.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/spi/mmc_spi.h b/include/linux/spi/mmc_spi.h
index 32be8dbdf191..87cdb35bedda 100644
--- a/include/linux/spi/mmc_spi.h
+++ b/include/linux/spi/mmc_spi.h
@@ -7,6 +7,11 @@
7struct device; 7struct device;
8struct mmc_host; 8struct mmc_host;
9 9
10#define MMC_SPI_USE_CD_GPIO (1 << 0)
11#define MMC_SPI_USE_RO_GPIO (1 << 1)
12#define MMC_SPI_CD_GPIO_ACTIVE_LOW (1 << 2)
13#define MMC_SPI_RO_GPIO_ACTIVE_LOW (1 << 3)
14
10/* Put this in platform_data of a device being used to manage an MMC/SD 15/* Put this in platform_data of a device being used to manage an MMC/SD
11 * card slot. (Modeled after PXA mmc glue; see that for usage examples.) 16 * card slot. (Modeled after PXA mmc glue; see that for usage examples.)
12 * 17 *
@@ -30,8 +35,19 @@ struct mmc_spi_platform_data {
30 */ 35 */
31 int (*get_cd)(struct device *); 36 int (*get_cd)(struct device *);
32 37
38 /*
39 * Card Detect and Read Only GPIOs. To enable debouncing on the card
40 * detect GPIO, set the cd_debounce to the debounce time in
41 * microseconds.
42 */
43 unsigned int flags;
44 unsigned int cd_gpio;
45 unsigned int cd_debounce;
46 unsigned int ro_gpio;
47
33 /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */ 48 /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */
34 unsigned long caps; 49 unsigned long caps;
50 unsigned long caps2;
35 51
36 /* how long to debounce card detect, in msecs */ 52 /* how long to debounce card detect, in msecs */
37 u16 detect_delay; 53 u16 detect_delay;