aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeerthy2019-10-24 15:00:53 +0530
committerTom Rini2019-11-07 18:39:17 -0500
commit7b134930888ffc07500026b752ce922a3fdcaf28 (patch)
treefd551a5324d041da86efc17549d7be4caae6568f
parent27380cb7e966f779f52d13f394d7aaeed9acbe44 (diff)
arm: mach-k3: j721e_init: Initialize avs class 0
Initialize avs class 0 Signed-off-by: Keerthy <j-keerthy@ti.com>
-rw-r--r--arch/arm/mach-k3/j721e_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
index 5e3813252ba..d0bf86abeb2 100644
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
@@ -118,6 +118,13 @@ void board_init_f(ulong dummy)
preloader_console_init();
#endif
+#if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0)
+ ret = uclass_get_device_by_driver(UCLASS_MISC, DM_GET_DRIVER(k3_avs),
+ &dev);
+ if (ret)
+ printf("AVS init failed: %d\n", ret);
+#endif
+
#if defined(CONFIG_K3_J721E_DDRSS)
ret = uclass_get_device(UCLASS_RAM, 0, &dev);
if (ret)