> From: Markus Schneider-Pargmann (TI.com) <[email protected]>
> scale_vcores_generic() calls functions implemented in tps65910.c, not
> tps65910_dm.c. Change guard from CONFIG_DM_PMIC_TPS65910 to
> CONFIG_SPL_POWER_TPS65910.
> 
> Fixes: 0b9ff0851592 ("board: ti: am335x: Do not call disabled PMIC functions")
> Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]>
> ---
>  board/ti/am335x/board.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
> index
> 712818ec23562fad85febf6616aea3cea1a3a9ea..90e37a8d91330365bb5f27c37
> 1be7b9749de9fde 100644
> --- a/board/ti/am335x/board.c
> +++ b/board/ti/am335x/board.c
> @@ -429,7 +429,7 @@ void scale_vcores_generic(int freq)
>  {
>       int sil_rev, mpu_vdd;
> 
> -     if (!IS_ENABLED(CONFIG_DM_PMIC_TPS65910))
> +     if (!IS_ENABLED(CONFIG_SPL_POWER_TPS65910))
>               return;
> 
>       /*
> 
> --
> 2.51.0

Acked-by: Maarten Brock <[email protected]>

Reply via email to