diff options
| author | Neha Malcom Francis <[email protected]> | 2024-11-18 16:27:12 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-04 14:29:04 -0600 |
| commit | 6f6192f626302739f2d5d6115467f3296301bcd3 (patch) | |
| tree | 10512eaa99c847e008449b9b2dbe6227ac28e7ce | |
| parent | d43d612469cdd376593cba89c3910547fa613daa (diff) | |
arch: arm: mach-k3: j784s4_init: Probe AVS driver
Probe the AVS driver to set the AVS voltage.
Signed-off-by: Neha Malcom Francis <[email protected]>
Reviewed-by: Manorit Chawdhry <[email protected]>
| -rw-r--r-- | arch/arm/mach-k3/j784s4/j784s4_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); + } + if (IS_ENABLED(CONFIG_CPU_V7R)) setup_navss_nb(); |
