tmio_mmc: Add MMC_CAP_MMC_HIGHSPEED support V2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:04 pm

Gitweb:     http://git.kernel.org/linus/b741d440a97c376af309e902eeb2f3c5673d2c92
Commit:     b741d440a97c376af309e902eeb2f3c5673d2c92
Parent:     a8c39d8deb8341d15fc0eabaa9750f7a1db9d0df
Author:     Yusuke Goda <goda.yusuke@renesas.com>
AuthorDate: Wed Feb 17 16:37:55 2010 +0900
Committer:  Samuel Ortiz <sameo@linux.intel.com>
CommitDate: Sun Mar 7 22:17:26 2010 +0100

    tmio_mmc: Add MMC_CAP_MMC_HIGHSPEED support V2
    
    Enable MMC_CAP_XX support in the tmio_mmc driver if
    pdata->capabilities is set.
    
    Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com>
    Signed-off-by: Magnus Damm <damm@opensource.se>
    Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/mmc/host/tmio_mmc.c |    1 +
 include/linux/mfd/tmio.h    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index e22c3fa..e2c0cc9 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -550,6 +550,7 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
 
 	mmc->ops = &tmio_mmc_ops;
 	mmc->caps = MMC_CAP_4_BIT_DATA;
+	mmc->caps |= pdata->capabilities;
 	mmc->f_max = pdata->hclk;
 	mmc->f_min = mmc->f_max / 512;
 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h
index 9cb1834..37d9414 100644
--- a/include/linux/mfd/tmio.h
+++ b/include/linux/mfd/tmio.h
@@ -60,6 +60,7 @@ void tmio_core_mmc_clk_div(void __iomem *cnf, int shift, int state);
  */
 struct tmio_mmc_data {
 	const unsigned int		hclk;
+	unsigned long			capabilities;
 	void (*set_pwr)(struct platform_device *host, int state);
 	void (*set_clk_div)(struct platform_device *host, int state);
 };
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
tmio_mmc: Add MMC_CAP_MMC_HIGHSPEED support V2, Linux Kernel Mailing ..., (Sun Mar 7, 6:04 pm)