]> git.ipfire.org Git - people/ms/u-boot.git/commit
mmc: introduce mmc_power_init
authorPeng Fan <peng.fan@nxp.com>
Tue, 11 Oct 2016 07:08:43 +0000 (15:08 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 28 Oct 2016 02:02:16 +0000 (11:02 +0900)
commit2051aefe71b646b14220c52e85c42b26be1e7cad
tree1dbcaf112322bc6651312b1a0af17c7440a7ce58
parentb03380805b5a184b7017dc428a53c8e1e9c9f99c
mmc: introduce mmc_power_init

In device tree, there is vmmc-supply property for SD/MMC.
Introduce mmc_power_init function to handle vmmc-supply.

mmc_power_init will first invoke board_mmc_power_init to
avoid break boards which already implement board_mmc_power_init.

If DM_MMC and DM_REGULATOR is defined, the regulator
will be enabled to power up the device.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c