]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: j721e_init: Initialize avs class 0
authorKeerthy <j-keerthy@ti.com>
Thu, 24 Oct 2019 09:30:53 +0000 (15:00 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:39:17 +0000 (18:39 -0500)
Initialize avs class 0

Signed-off-by: Keerthy <j-keerthy@ti.com>
arch/arm/mach-k3/j721e_init.c

index 5e3813252baed24f5a6553e5444edee4860c53b2..d0bf86abeb222c078aacb075f2eeebc87da3b797 100644 (file)
@@ -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)