diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-11-08 20:55:45 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-04 11:04:40 -0500 |
commit | 95de9ab201e9c43c8969321711de9e93e444e420 (patch) | |
tree | cce448faa986d0ad8c028a78b67e1ebd6250a0b9 /drivers/mmc/mmc.c | |
parent | 1e4ad74b875f4da91193afffb0bb0db90ec7b886 (diff) |
mmc: Board-specific MMC power initializations
Some devices may use non-standard combinations of regulators to power MMC:
this allows these devices to provide a board-specific MMC power init function
to set everything up in their own way.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 44a4feb96e..8436bc7f5d 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1277,6 +1277,11 @@ block_dev_desc_t *mmc_get_dev(int dev) } #endif +/* board-specific MMC power initializations. */ +__weak void board_mmc_power_init(void) +{ +} + int mmc_start_init(struct mmc *mmc) { int err; @@ -1293,6 +1298,8 @@ int mmc_start_init(struct mmc *mmc) if (mmc->has_init) return 0; + board_mmc_power_init(); + /* made sure it's not NULL earlier */ err = mmc->cfg->ops->init(mmc); |