|
@@ -1236,11 +1236,15 @@ static int dw_mci_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
|
|
|
{
|
|
|
struct dw_mci_slot *slot = mmc_priv(mmc);
|
|
|
struct dw_mci *host = slot->host;
|
|
|
+ const struct dw_mci_drv_data *drv_data = host->drv_data;
|
|
|
u32 uhs;
|
|
|
u32 v18 = SDMMC_UHS_18V << slot->id;
|
|
|
int min_uv, max_uv;
|
|
|
int ret;
|
|
|
|
|
|
+ if (drv_data && drv_data->switch_voltage)
|
|
|
+ return drv_data->switch_voltage(mmc, ios);
|
|
|
+
|
|
|
/*
|
|
|
* Program the voltage. Note that some instances of dw_mmc may use
|
|
|
* the UHS_REG for this. For other instances (like exynos) the UHS_REG
|