diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmc/core.h | 2 | ||||
| -rw-r--r-- | include/linux/mmc/host.h | 2 | ||||
| -rw-r--r-- | include/linux/spi/mmc_spi.h | 15 |
3 files changed, 18 insertions, 1 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 143cebf0586f..7ac8b500d55c 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h | |||
| @@ -151,4 +151,6 @@ static inline void mmc_claim_host(struct mmc_host *host) | |||
| 151 | __mmc_claim_host(host, NULL); | 151 | __mmc_claim_host(host, NULL); |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max); | ||
| 155 | |||
| 154 | #endif | 156 | #endif |
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index f842f234e44f..4e457256bd33 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -41,6 +41,7 @@ struct mmc_ios { | |||
| 41 | 41 | ||
| 42 | #define MMC_BUS_WIDTH_1 0 | 42 | #define MMC_BUS_WIDTH_1 0 |
| 43 | #define MMC_BUS_WIDTH_4 2 | 43 | #define MMC_BUS_WIDTH_4 2 |
| 44 | #define MMC_BUS_WIDTH_8 3 | ||
| 44 | 45 | ||
| 45 | unsigned char timing; /* timing specification used */ | 46 | unsigned char timing; /* timing specification used */ |
| 46 | 47 | ||
| @@ -116,6 +117,7 @@ struct mmc_host { | |||
| 116 | #define MMC_CAP_SDIO_IRQ (1 << 3) /* Can signal pending SDIO IRQs */ | 117 | #define MMC_CAP_SDIO_IRQ (1 << 3) /* Can signal pending SDIO IRQs */ |
| 117 | #define MMC_CAP_SPI (1 << 4) /* Talks only SPI protocols */ | 118 | #define MMC_CAP_SPI (1 << 4) /* Talks only SPI protocols */ |
| 118 | #define MMC_CAP_NEEDS_POLL (1 << 5) /* Needs polling for card-detection */ | 119 | #define MMC_CAP_NEEDS_POLL (1 << 5) /* Needs polling for card-detection */ |
| 120 | #define MMC_CAP_8_BIT_DATA (1 << 6) /* Can the host do 8 bit transfers */ | ||
| 119 | 121 | ||
| 120 | /* host specific block data */ | 122 | /* host specific block data */ |
| 121 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ | 123 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ |
diff --git a/include/linux/spi/mmc_spi.h b/include/linux/spi/mmc_spi.h index a3626aedaec9..0f4eb165f254 100644 --- a/include/linux/spi/mmc_spi.h +++ b/include/linux/spi/mmc_spi.h | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | #ifndef __LINUX_SPI_MMC_SPI_H | 1 | #ifndef __LINUX_SPI_MMC_SPI_H |
| 2 | #define __LINUX_SPI_MMC_SPI_H | 2 | #define __LINUX_SPI_MMC_SPI_H |
| 3 | 3 | ||
| 4 | #include <linux/device.h> | ||
| 5 | #include <linux/spi/spi.h> | ||
| 4 | #include <linux/interrupt.h> | 6 | #include <linux/interrupt.h> |
| 5 | 7 | ||
| 6 | struct device; | ||
| 7 | struct mmc_host; | 8 | struct mmc_host; |
| 8 | 9 | ||
| 9 | /* Put this in platform_data of a device being used to manage an MMC/SD | 10 | /* Put this in platform_data of a device being used to manage an MMC/SD |
| @@ -41,4 +42,16 @@ struct mmc_spi_platform_data { | |||
| 41 | void (*setpower)(struct device *, unsigned int maskval); | 42 | void (*setpower)(struct device *, unsigned int maskval); |
| 42 | }; | 43 | }; |
| 43 | 44 | ||
| 45 | #ifdef CONFIG_OF | ||
| 46 | extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi); | ||
| 47 | extern void mmc_spi_put_pdata(struct spi_device *spi); | ||
| 48 | #else | ||
| 49 | static inline struct mmc_spi_platform_data * | ||
| 50 | mmc_spi_get_pdata(struct spi_device *spi) | ||
| 51 | { | ||
| 52 | return spi->dev.platform_data; | ||
| 53 | } | ||
| 54 | static inline void mmc_spi_put_pdata(struct spi_device *spi) {} | ||
| 55 | #endif /* CONFIG_OF */ | ||
| 56 | |||
| 44 | #endif /* __LINUX_SPI_MMC_SPI_H */ | 57 | #endif /* __LINUX_SPI_MMC_SPI_H */ |
