[PATCH 07/10] arm: mach-k3: j721s2_init: Initialize AVS Class 0
Manorit Chawdhry
m-chawdhry at ti.com
Tue Feb 6 13:21:14 CET 2024
Initialize AVS Class 0.
Signed-off-by: Manorit Chawdhry <m-chawdhry at ti.com>
---
arch/arm/mach-k3/j721s2_init.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c
index fb0708bae162..7080c519cf4c 100644
--- a/arch/arm/mach-k3/j721s2_init.c
+++ b/arch/arm/mach-k3/j721s2_init.c
@@ -206,6 +206,14 @@ void k3_spl_init(void)
/* Output System Firmware version info */
k3_sysfw_print_ver();
+
+ 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);
+ }
+
}
bool check_rom_loaded_sysfw(void)
--
2.43.0
More information about the U-Boot
mailing list