
21 Mar
2019
21 Mar
'19
9:45 a.m.
Hi,
SRAM address used for bootcount on exiting code is erasing previous count value when system reset from Linux. So use the dedicated imx6 scratch register, GPR2 to preserve the contents even if the system reset from Linux.
Fixes: 4eb9aa39350e ("configs: imx6qdl_icore_mmc: Enable watchdog and bootcounter") Signed-off-by: Michael Trimarchi michael@amarulasolutions.com Signed-off-by: Jagan Teki jagan@amarulasolutions.com
I tested this on Engicam imx6q-icore, so
Tested-by: Shyam Saini shyam.saini@amarulasolutions.com