[U-Boot] [RFC 1/2] mmc: introduce mmc_power_init and pwrup hook function

Simon Glass sjg at chromium.org
Sat Apr 9 20:34:13 CEST 2016


Hi Peng,

On 15 March 2016 at 19:32, Peng Fan <van.freenix at gmail.com> wrote:
> In device tree, there is vmmc-supply property for SD/MMC.
> Introduce mmc_power_init function and pwrup hook function to let
> the specific drivers handle vmmc-supply.
>
> mmc_power_init will first invoke board_mmc_power_init to
> avoid break boards which already implement board_mmc_power_init.
>
> Then if pwrup hook functions have been implemented for different
> mmc drivers, pwrup will be invoked.
>
> Signed-off-by: Peng Fan <van.freenix at gmail.com>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> Cc: Andrew Gabbasov <andrew_gabbasov at mentor.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Clemens Gruber <clemens.gruber at pqgruber.com>
> Cc: Eric Nelson <eric at nelint.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> ---
>  drivers/mmc/mmc.c | 15 ++++++++++++++-
>  include/mmc.h     |  1 +
>  2 files changed, 15 insertions(+), 1 deletion(-)

Acked-by: Simon Glass <sjg at chromium.org>

I wonder if there is a way to handle this property generically?

Regards,
Simon


More information about the U-Boot mailing list