diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-02 12:22:24 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-02 12:22:24 -0400 |
| commit | 6c52486dedbb30a1313da64945dcd686b4579c51 (patch) | |
| tree | cce3fcb1ee47ea30f0b74271e00e83039b9f9f92 /include/linux/amba | |
| parent | c9733c79f411b5df63f3dfd494fc37636a4d8fba (diff) | |
| parent | 8c3a05b489ef097f86bf87c64192456553f57781 (diff) | |
Merge tag 'mmc-v3.16-1' of git://git.linaro.org/people/ulf.hansson/mmc into next
Pull MMC update from Ulf Hansson:
"These patches are mainly updates for the mmci driver and have been
tested in linux-next.
Some ARM SoC related patches are also included and those have been
acked from the corresponding maintainers to go through my mmc tree.
Updates for mmci driver:
- Put the device into low power state at system suspend.
- Convert to the common mmc DT parser.
- Add missing DT bindings needed for ux500.
Updates for ARM ux500|u300:
- Convert to the common mmc DT bindings.
- Remove redundant board file for mmci platform data"
* tag 'mmc-v3.16-1' of git://git.linaro.org/people/ulf.hansson/mmc: (22 commits)
mmc: mmci: Enforce DMA configuration through DT
mmc: mmci: Enforce max frequency configuration through DT
mmc: mmci: Enforce mmc capabilities through DT
mmc: mmci: Enforce DT for signal direction and feedback clock
ARM: ux500: Remove redundant board file for mmci platform data
ARM: ux500: Add a vmmc regulator through DT for the poped eMMC for href
ARM: ux500: Add the mmc capabilities flags to DT
mmc: mmci: Enable MMC_CAP_CMD23
mmc: mmci: Mark the DT bindings for highspeed mode as deprecated
ARM: u300: Convert to the common mmc DT bindings for highspeed mode
ARM: nomadik: Convert to the common mmc DT bindings for highspeed mode
ARM: ux500: Convert to the common mmc DT bindings for highspeed mode
ARM: ux500: Add mmci signal directions and feeback clock in DT for href
mmc: mmci: Use the common mmc DT parser
mmc: mmci: Add DT bindings for feedback clock pin
mmc: mmci: Add DT bindings for signal direction
mmc: mmci: Update DT documentation
mmc: mmci: Convert to devm functions
mmc: mmci: Convert to the mmc gpio API
mmc: mmci: Put the device into low power state at system suspend
...
Diffstat (limited to 'include/linux/amba')
| -rw-r--r-- | include/linux/amba/mmci.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/linux/amba/mmci.h b/include/linux/amba/mmci.h index 32a89cf5ec45..8c98113069ce 100644 --- a/include/linux/amba/mmci.h +++ b/include/linux/amba/mmci.h | |||
| @@ -6,28 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | #include <linux/mmc/host.h> | 7 | #include <linux/mmc/host.h> |
| 8 | 8 | ||
| 9 | |||
| 10 | /* | ||
| 11 | * These defines is places here due to access is needed from machine | ||
| 12 | * configuration files. The ST Micro version does not have ROD and | ||
| 13 | * reuse the voltage registers for direction settings. | ||
| 14 | */ | ||
| 15 | #define MCI_ST_DATA2DIREN (1 << 2) | ||
| 16 | #define MCI_ST_CMDDIREN (1 << 3) | ||
| 17 | #define MCI_ST_DATA0DIREN (1 << 4) | ||
| 18 | #define MCI_ST_DATA31DIREN (1 << 5) | ||
| 19 | #define MCI_ST_FBCLKEN (1 << 7) | ||
| 20 | #define MCI_ST_DATA74DIREN (1 << 8) | ||
| 21 | |||
| 22 | /* Just some dummy forwarding */ | ||
| 23 | struct dma_chan; | ||
| 24 | |||
| 25 | /** | 9 | /** |
| 26 | * struct mmci_platform_data - platform configuration for the MMCI | 10 | * struct mmci_platform_data - platform configuration for the MMCI |
| 27 | * (also known as PL180) block. | 11 | * (also known as PL180) block. |
| 28 | * @f_max: the maximum operational frequency for this host in this | ||
| 29 | * platform configuration. When this is specified it takes precedence | ||
| 30 | * over the module parameter for the same frequency. | ||
| 31 | * @ocr_mask: available voltages on the 4 pins from the block, this | 12 | * @ocr_mask: available voltages on the 4 pins from the block, this |
| 32 | * is ignored if a regulator is used, see the MMC_VDD_* masks in | 13 | * is ignored if a regulator is used, see the MMC_VDD_* masks in |
| 33 | * mmc/host.h | 14 | * mmc/host.h |
| @@ -42,37 +23,14 @@ struct dma_chan; | |||
| 42 | * @gpio_wp: read this GPIO pin to see if the card is write protected | 23 | * @gpio_wp: read this GPIO pin to see if the card is write protected |
| 43 | * @gpio_cd: read this GPIO pin to detect card insertion | 24 | * @gpio_cd: read this GPIO pin to detect card insertion |
| 44 | * @cd_invert: true if the gpio_cd pin value is active low | 25 | * @cd_invert: true if the gpio_cd pin value is active low |
| 45 | * @capabilities: the capabilities of the block as implemented in | ||
| 46 | * this platform, signify anything MMC_CAP_* from mmc/host.h | ||
| 47 | * @capabilities2: more capabilities, MMC_CAP2_* from mmc/host.h | ||
| 48 | * @sigdir: a bit field indicating for what bits in the MMC bus the host | ||
| 49 | * should enable signal direction indication. | ||
| 50 | * @dma_filter: function used to select an appropriate RX and TX | ||
| 51 | * DMA channel to be used for DMA, if and only if you're deploying the | ||
| 52 | * generic DMA engine | ||
| 53 | * @dma_rx_param: parameter passed to the DMA allocation | ||
| 54 | * filter in order to select an appropriate RX channel. If | ||
| 55 | * there is a bidirectional RX+TX channel, then just specify | ||
| 56 | * this and leave dma_tx_param set to NULL | ||
| 57 | * @dma_tx_param: parameter passed to the DMA allocation | ||
| 58 | * filter in order to select an appropriate TX channel. If this | ||
| 59 | * is NULL the driver will attempt to use the RX channel as a | ||
| 60 | * bidirectional channel | ||
| 61 | */ | 26 | */ |
| 62 | struct mmci_platform_data { | 27 | struct mmci_platform_data { |
| 63 | unsigned int f_max; | ||
| 64 | unsigned int ocr_mask; | 28 | unsigned int ocr_mask; |
| 65 | int (*ios_handler)(struct device *, struct mmc_ios *); | 29 | int (*ios_handler)(struct device *, struct mmc_ios *); |
| 66 | unsigned int (*status)(struct device *); | 30 | unsigned int (*status)(struct device *); |
| 67 | int gpio_wp; | 31 | int gpio_wp; |
| 68 | int gpio_cd; | 32 | int gpio_cd; |
| 69 | bool cd_invert; | 33 | bool cd_invert; |
| 70 | unsigned long capabilities; | ||
| 71 | unsigned long capabilities2; | ||
| 72 | u32 sigdir; | ||
| 73 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); | ||
| 74 | void *dma_rx_param; | ||
| 75 | void *dma_tx_param; | ||
| 76 | }; | 34 | }; |
| 77 | 35 | ||
| 78 | #endif | 36 | #endif |
