[PATCH 04/18] board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board
Apelete Seketeli
aseketeli at baylibre.com
Fri May 12 15:17:31 CEST 2023
From: Jerome Neanne <jneanne at 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 at baylibre.com>
Signed-off-by: Apelete Seketeli <aseketeli 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 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;
}
--
2.34.1
More information about the U-Boot
mailing list