summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2024-02-12 14:42:59 +0530
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2024-03-21 14:26:33 +0000
commita6332eaef4cb6f4c547a338dddc8c48071e0226e (patch)
treeca7dbed138e1a412adbf158d1c73940b8e47f7e8
parentad1796ffb3dbe2bcbd6aeec559f607c05732c7de (diff)
arm: mach-k3: j784s4_init: Enable AVS
Enable probing of AVS node in R5 SPL. Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Dhruva Gole <d-gole@ti.com>
-rw-r--r--arch/arm/mach-k3/j784s4_init.c7
1 files changed, 7 insertions, 0 deletions
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)