[PATCH v1 4/9] board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board

Jerome Neanne jneanne at baylibre.com
Thu Apr 6 17:38:15 CEST 2023


Using uclass_probe_all forces probe on all devices:
Only probe for WD stop is really needed here.
Probing other devices has no impact.

Signed-off-by: Jerome Neanne <jneanne at baylibre.com>
---
 board/ti/j721e/evm.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index d4e672a7ac..a3304468d4 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -27,6 +27,8 @@
 
 #include "../common/board_detect.h"
 
+#include <power/tps65941.h>
+
 #define board_is_j721e_som()	(board_ti_k3_is("J721EX-PM1-SOM") || \
 				 board_ti_k3_is("J721EX-PM2-SOM"))
 
@@ -43,6 +45,12 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
+	int ret;
+
+	/* WD stop is applied unconditionally on all platforms*/
+	ret = uclass_probe_all(UCLASS_PMIC);
+	if (ret)
+		printf("Failed to probe! stop tps65941 wd\n");
 	return 0;
 }
 
-- 
2.25.1



More information about the U-Boot mailing list