提交 0cd59df9 编写于 作者: L Lars Persson 提交者: Ulf Hansson

mmc: usdhi6rol0: add support for UHS modes

Add a start_signal_voltage_switch() operation to support enabling of
UHS modes.
Signed-off-by: NLars Persson <larper@axis.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 701dcef7
...@@ -1147,12 +1147,22 @@ static void usdhi6_enable_sdio_irq(struct mmc_host *mmc, int enable) ...@@ -1147,12 +1147,22 @@ static void usdhi6_enable_sdio_irq(struct mmc_host *mmc, int enable)
} }
} }
static int usdhi6_sig_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios)
{
int ret;
ret = mmc_regulator_set_vqmmc(mmc, ios);
return ret;
}
static struct mmc_host_ops usdhi6_ops = { static struct mmc_host_ops usdhi6_ops = {
.request = usdhi6_request, .request = usdhi6_request,
.set_ios = usdhi6_set_ios, .set_ios = usdhi6_set_ios,
.get_cd = usdhi6_get_cd, .get_cd = usdhi6_get_cd,
.get_ro = usdhi6_get_ro, .get_ro = usdhi6_get_ro,
.enable_sdio_irq = usdhi6_enable_sdio_irq, .enable_sdio_irq = usdhi6_enable_sdio_irq,
.start_signal_voltage_switch = usdhi6_sig_volt_switch,
}; };
/* State machine handlers */ /* State machine handlers */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册