From db490a60eadf7f512450622c0e4c76e05b9acc7a Mon Sep 17 00:00:00 2001 From: Lucien Mueller Date: Thu, 16 Sep 2021 14:38:16 +0200 Subject: [PATCH] test Signed-off-by: Lucien Mueller --- board/netmodule/imx8_nmhw23/imx8_nmhw23.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/netmodule/imx8_nmhw23/imx8_nmhw23.c b/board/netmodule/imx8_nmhw23/imx8_nmhw23.c index 06fd934876..98633dd0de 100644 --- a/board/netmodule/imx8_nmhw23/imx8_nmhw23.c +++ b/board/netmodule/imx8_nmhw23/imx8_nmhw23.c @@ -644,6 +644,13 @@ static void check_reset_reason(uint64_t reset_reason_shm_location) } } + sc_ipc_t ipcHndl = 0; + ipcHndl = gd->arch.ipc_channel_handle; + sc_pm_reset_reason_t sc_rr; + sc_err_t err = sc_pm_reset_reason(ipcHndl, &sc_rr); + + printf("sc_pm_reset_reason: %x ; err: %d\n", sc_rr, err); + /* * Check Wakeup Events * Event Register A holds: