]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Extend support for mmc regulators with a vqmmc2
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2024 10:28:18 +0000 (18:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Oct 2024 10:40:10 +0000 (12:40 +0200)
commita56ffd3a83ed2e10e0d9e0b199547bfa0d206aac
tree7106fa2e484275f9e336ef3ea496f926701de337
parent153196d550c747367bdbec5cd545a572c5310451
mmc: core: Extend support for mmc regulators with a vqmmc2

To allow an additional external regulator to be controlled by an mmc host
driver, let's add support for a vqmmc2 regulator to the mmc core.

For an SD UHS-II interface the vqmmc2 regulator may correspond to the so
called vdd2 supply, as described by the SD spec. Initially, only 1.8V is
needed, hence limit the new helper function, mmc_regulator_set_vqmmc2() to
this too.

Note that, to allow for flexibility mmc host drivers need to manage the
enable/disable of the vqmmc2 regulator themselves, while the regulator is
looked up through the common mmc_regulator_get_supply().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240913102836.6144-5-victorshihgli@gmail.com
drivers/mmc/core/regulator.c
include/linux/mmc/host.h