AnsweredAssumed Answered

How to detect reset source in imx8qm

Question asked by mrigendra chaubey on Jun 6, 2019
Latest reply on Jun 16, 2019 by mrigendra chaubey

Hi all,

 

Recently I needed to implement a function for our imx8qm board, which need to know the reset cause/reason/source.

This function is required to be in uboot as well as kernel.

 

For this reason I tried using sc firmware apis, like this

 

sc_pm_reset_reason((sc_ipc_t)ipcHndl, reason);

 

but in uboot and in kernel, even after I issue reset(uboot) or reboot(kernel) the return value from this function is always 0, i.e. POR.

 

 

This is the version file of my sc-firmware source,

 

NXP i.MX System Controller Firmware

--------------------------------------------

Git repo: ssh://git@bitm-us-cdc01.sw.nxp.com:7999/bitbucket/imx/imx-sc-firmware.git
Branch name: imx_4.14.78_1.0.0_ga
Build version: 3008
Commit ID: 0x01f1cd7df
Build date: Feb 28 2019
Build time: 11:15:30

 

1. So how or what we need to do in order to get correct reset source?

2. In uboot do we need to implement a watchdog driver that is based on scfw?

Outcomes