diff options
author | Keerthy <j-keerthy@ti.com> | 2023-10-09 14:12:55 +0530 |
---|---|---|
committer | Udit Kumar <u-kumar1@ti.com> | 2023-10-09 14:17:44 +0530 |
commit | 4950c95812802fe9172f7d9c8ec0d8bd57536d2a (patch) | |
tree | 5ae80365e150748a151e45f1d4b7d4e300a8e53d /board/ti/j721e/evm.c | |
parent | 9d8b40958ce792808bc571d828197dbc2e7978d6 (diff) |
board: ti: j721e: Initialize MCU ESM
Currently only the Main domain ESM is being initialized. For watchdog
reset we need the MCU ESM as well. Enbaling the same.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'board/ti/j721e/evm.c')
-rw-r--r-- | board/ti/j721e/evm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index e82349ef24..d0077cebc4 100644 --- a/board/ti/j721e/evm.c +++ b/board/ti/j721e/evm.c @@ -571,10 +571,13 @@ void spl_board_init(void) if (board_ti_k3_is("J721EX-PM2-SOM") || board_ti_k3_is("J7200X-PM2-SOM") || board_is_bboneai_64_b0()) { - ret = uclass_get_device_by_driver(UCLASS_MISC, - DM_DRIVER_GET(k3_esm), &dev); + ret = uclass_get_device_by_name(UCLASS_MISC, "esm@700000", &dev); + if (ret) + printf("MISC init for esm@700000 failed: %d\n", ret); + + ret = uclass_get_device_by_name(UCLASS_MISC, "esm@40800000", &dev); if (ret) - printf("ESM init failed: %d\n", ret); + printf("MISC init for esm@40800000 failed: %d\n", ret); } #endif |