Lines Matching full:vqmmc

164  * mmc_regulator_set_vqmmc - Set VQMMC as per the ios
168 * For 3.3V signaling, we try to match VQMMC to VMMC as closely as possible.
169 * That will match the behavior of old boards where VQMMC and VMMC were supplied
171 * SD card spec also define VQMMC in terms of VMMC.
187 /* If no vqmmc supply then we can't change the voltage */ in mmc_regulator_set_vqmmc()
188 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc()
193 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
196 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
216 ret = mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
221 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
239 * mmc_regulator_get_supply - try to get VMMC and VQMMC regulators for a host
254 mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc"); in mmc_regulator_get_supply()
270 if (IS_ERR(mmc->supply.vqmmc)) { in mmc_regulator_get_supply()
271 if (PTR_ERR(mmc->supply.vqmmc) == -EPROBE_DEFER) in mmc_regulator_get_supply()
273 "vqmmc regulator not available\n"); in mmc_regulator_get_supply()
275 dev_dbg(dev, "No vqmmc regulator found\n"); in mmc_regulator_get_supply()
283 * mmc_regulator_enable_vqmmc - enable VQMMC regulator for a host
286 * Returns 0 or errno. Enables the regulator for vqmmc.
294 if (!IS_ERR(mmc->supply.vqmmc) && !mmc->vqmmc_enabled) { in mmc_regulator_enable_vqmmc()
295 ret = regulator_enable(mmc->supply.vqmmc); in mmc_regulator_enable_vqmmc()
297 dev_err(mmc_dev(mmc), "enabling vqmmc regulator failed\n"); in mmc_regulator_enable_vqmmc()
307 * mmc_regulator_disable_vqmmc - disable VQMMC regulator for a host
310 * Returns 0 or errno. Disables the regulator for vqmmc.
316 if (!IS_ERR(mmc->supply.vqmmc) && mmc->vqmmc_enabled) { in mmc_regulator_disable_vqmmc()
317 regulator_disable(mmc->supply.vqmmc); in mmc_regulator_disable_vqmmc()