diff mbox series

[04/18] board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board

Message ID 20230512131745.2321727-5-aseketeli@baylibre.com
State Deferred
Delegated to: Tom Rini
Headers show
Series [01/18] drivers: pmic: TPS65941 add support for WD disable | expand

Commit Message

Apelete Seketeli May 12, 2023, 1:17 p.m. UTC
From: Jerome Neanne <jneanne@baylibre.com>

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@baylibre.com>
Signed-off-by: Apelete Seketeli <aseketeli@baylibre.com>
---
 board/ti/j721e/evm.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index 2398bead78..c6391c1bae 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -25,6 +25,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"))
 
@@ -41,6 +43,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;
 }