[PATCH 15/18] board: ti: k3-j721s2: Enable AVS0 on board init

Apelete Seketeli aseketeli at baylibre.com
Fri May 12 15:17:42 CEST 2023


From: Esteban Blanc <eblanc at baylibre.com>

Signed-off-by: Esteban Blanc <eblanc at baylibre.com>
Signed-off-by: Apelete Seketeli <aseketeli at baylibre.com>
---
 board/ti/j721s2/evm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c
index ec7abea387..818edea686 100644
--- a/board/ti/j721s2/evm.c
+++ b/board/ti/j721s2/evm.c
@@ -326,4 +326,13 @@ int board_late_init(void)
 
 void spl_board_init(void)
 {
+	struct udevice *dev;
+	int ret;
+
+#if defined(CONFIG_CPU_V7R) && defined(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);
+#endif
 }
-- 
2.34.1



More information about the U-Boot mailing list