| .. | .. |
|---|
| 8 | 8 | struct device; |
|---|
| 9 | 9 | struct mmc_host; |
|---|
| 10 | 10 | |
|---|
| 11 | | -#define MMC_SPI_USE_CD_GPIO (1 << 0) |
|---|
| 12 | | -#define MMC_SPI_USE_RO_GPIO (1 << 1) |
|---|
| 13 | | -#define MMC_SPI_CD_GPIO_ACTIVE_LOW (1 << 2) |
|---|
| 14 | | -#define MMC_SPI_RO_GPIO_ACTIVE_LOW (1 << 3) |
|---|
| 15 | | - |
|---|
| 16 | 11 | /* Put this in platform_data of a device being used to manage an MMC/SD |
|---|
| 17 | 12 | * card slot. (Modeled after PXA mmc glue; see that for usage examples.) |
|---|
| 18 | 13 | * |
|---|
| .. | .. |
|---|
| 26 | 21 | irqreturn_t (*)(int, void *), |
|---|
| 27 | 22 | void *); |
|---|
| 28 | 23 | void (*exit)(struct device *, void *); |
|---|
| 29 | | - |
|---|
| 30 | | - /* |
|---|
| 31 | | - * Card Detect and Read Only GPIOs. To enable debouncing on the card |
|---|
| 32 | | - * detect GPIO, set the cd_debounce to the debounce time in |
|---|
| 33 | | - * microseconds. |
|---|
| 34 | | - */ |
|---|
| 35 | | - unsigned int flags; |
|---|
| 36 | | - unsigned int cd_gpio; |
|---|
| 37 | | - unsigned int cd_debounce; |
|---|
| 38 | | - unsigned int ro_gpio; |
|---|
| 39 | 24 | |
|---|
| 40 | 25 | /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */ |
|---|
| 41 | 26 | unsigned long caps; |
|---|