From a6332eaef4cb6f4c547a338dddc8c48071e0226e Mon Sep 17 00:00:00 2001 From: Keerthy Date: Mon, 12 Feb 2024 14:42:59 +0530 Subject: arm: mach-k3: j784s4_init: Enable AVS Enable probing of AVS node in R5 SPL. Signed-off-by: Keerthy Reviewed-by: Dhruva Gole --- arch/arm/mach-k3/j784s4_init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-k3/j784s4_init.c b/arch/arm/mach-k3/j784s4_init.c index 5854e645bc..af0f46e2ab 100644 --- a/arch/arm/mach-k3/j784s4_init.c +++ b/arch/arm/mach-k3/j784s4_init.c @@ -215,6 +215,13 @@ void board_init_f(ulong dummy) /* Output System Firmware version info */ k3_sysfw_print_ver(); + if (IS_ENABLED(CONFIG_K3_AVS0)) { + ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs), + &dev); + if (ret) + pr_err("AVS init failed: %d\n", ret); + } + if (IS_ENABLED(CONFIG_TARGET_J784S4_R5_EVM)) { ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev); if (ret) -- cgit v1.2.3