Hi Neha,

On 16:27-20241118, Neha Malcom Francis wrote:
> Probe the AVS driver to set the AVS voltage.
> 
> Signed-off-by: Neha Malcom Francis <[email protected]>
> ---
>  arch/arm/mach-k3/j784s4/j784s4_init.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/mach-k3/j784s4/j784s4_init.c 
> b/arch/arm/mach-k3/j784s4/j784s4_init.c
> index 07b5d7d7504..8a41cd3bb50 100644
> --- a/arch/arm/mach-k3/j784s4/j784s4_init.c
> +++ b/arch/arm/mach-k3/j784s4/j784s4_init.c
> @@ -233,9 +233,19 @@ void k3_mem_init(void)
>  
>  void board_init_f(ulong dummy)
>  {
> +     struct udevice *dev;
> +     int ret;
> +
>       k3_spl_init();
>       k3_mem_init();
>  
> +     if (IS_ENABLED(CONFIG_CPU_V7R) && IS_ENABLED(CONFIG_K3_AVS0)) {
> +             ret = uclass_get_device_by_driver(UCLASS_MISC, 
> DM_DRIVER_GET(k3_avs),
> +                                               &dev);
> +             if (ret)
> +                     printf("AVS init failed: %d\n", ret);
> +     }
> +

Reviewed-by: Manorit Chawdhry <[email protected]>

Regards,
Manorit

>       if (IS_ENABLED(CONFIG_CPU_V7R))
>               setup_navss_nb();
>  
> -- 
> 2.34.1
> 

Reply via email to