Skip to content

Commit b741d44

Browse files
gohdaySamuel Ortiz
authored andcommitted
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>
1 parent a8c39d8 commit b741d44

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mmc/host/tmio_mmc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
550550

551551
mmc->ops = &tmio_mmc_ops;
552552
mmc->caps = MMC_CAP_4_BIT_DATA;
553+
mmc->caps |= pdata->capabilities;
553554
mmc->f_max = pdata->hclk;
554555
mmc->f_min = mmc->f_max / 512;
555556
mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;

‎include/linux/mfd/tmio.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void tmio_core_mmc_clk_div(void __iomem *cnf, int shift, int state);
6060
*/
6161
struct tmio_mmc_data {
6262
const unsigned int hclk;
63+
unsigned long capabilities;
6364
void (*set_pwr)(struct platform_device *host, int state);
6465
void (*set_clk_div)(struct platform_device *host, int state);
6566
};

0 commit comments

Comments
 (0)