]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: mmci: add capabilities2 for MMC_CAP2
authorPer Forlin <per.forlin@stericsson.com>
Mon, 14 Nov 2011 11:02:28 +0000 (12:02 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 1 Dec 2011 17:40:38 +0000 (12:40 -0500)
Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mmci.c
include/linux/amba/mmci.h

index 4602771658c0815c7dffc39c1ade1b30fb72ba08..c1cf80c8378c0d3841641865c84518b4c19dbe76 100644 (file)
@@ -1231,6 +1231,7 @@ static int __devinit mmci_probe(struct amba_device *dev,
        if (host->vcc == NULL)
                mmc->ocr_avail = plat->ocr_mask;
        mmc->caps = plat->capabilities;
+       mmc->caps2 = plat->capabilities2;
 
        /*
         * We can do SGIO
index 21114810c7c0b687afa01f188e50d99bdbdafecb..0101e9c17fa1ec022c75f3655646c16aca9dd948 100644 (file)
@@ -30,6 +30,7 @@ struct dma_chan;
  * @cd_invert: true if the gpio_cd pin value is active low
  * @capabilities: the capabilities of the block as implemented in
  * this platform, signify anything MMC_CAP_* from mmc/host.h
+ * @capabilities2: more capabilities, MMC_CAP2_* from mmc/host.h
  * @dma_filter: function used to select an appropriate RX and TX
  * DMA channel to be used for DMA, if and only if you're deploying the
  * generic DMA engine
@@ -52,6 +53,7 @@ struct mmci_platform_data {
        int     gpio_cd;
        bool    cd_invert;
        unsigned long capabilities;
+       unsigned long capabilities2;
        bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
        void *dma_rx_param;
        void *dma_tx_param;