[U-Boot] [PATCH 06/19] dm: common: board_r: add call and weak of power_init_dm()

Simon Glass sjg at chromium.org
Fri Oct 10 05:32:38 CEST 2014


Hi,

On 8 October 2014 14:48, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
> This function call is required to init dm pmic framework
> and drivers before call to power_init_board().
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> ---
>  common/board_r.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/common/board_r.c b/common/board_r.c
> index cd92288..e574130 100644
> --- a/common/board_r.c
> +++ b/common/board_r.c
> @@ -285,6 +285,11 @@ __weak int power_init_board(void)
>         return 0;
>  }
>
> +__weak int pmic_init_dm(void)
> +{
> +       return 0;
> +}
> +
>  static int initr_announce(void)
>  {
>         debug("Now running in RAM - U-Boot at: %08lx\n", gd->relocaddr);
> @@ -775,6 +780,9 @@ init_fnc_t init_sequence_r[] = {
>  #ifdef CONFIG_ARCH_EARLY_INIT_R
>         arch_early_init_r,
>  #endif
> +#ifdef CONFIG_DM_PMIC
> +       pmic_init_dm,
> +#endif

Can the call to init this just go in initr_dm()?

>         power_init_board,
>  #ifndef CONFIG_SYS_NO_FLASH
>         initr_flash,
> --
> 1.9.1
>

Regards,
Simon


More information about the U-Boot mailing list