diff options
| author | Jagan Teki <[email protected]> | 2019-03-21 14:05:53 +0530 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2019-03-31 20:12:37 +0200 |
| commit | 40ee163cc4e304d3b0a84cd0be37520270b95271 (patch) | |
| tree | 0dfda4cdde622e7f5b5f17834576d564bde021c7 | |
| parent | 8b9cba0295dcdce5eb8bb10d79f6dafb5a167349 (diff) | |
configs: icorem6: Use imx6 cratch register for bootcount
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 <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Tested-by: Shyam Saini <[email protected]>
Reviewed-by: Stefano Babic <[email protected]>
| -rw-r--r-- | configs/imx6qdl_icore_mmc_defconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/imx6qdl_icore_mmc_defconfig b/configs/imx6qdl_icore_mmc_defconfig index 68ad1c6d202..24e99718e63 100644 --- a/configs/imx6qdl_icore_mmc_defconfig +++ b/configs/imx6qdl_icore_mmc_defconfig @@ -16,7 +16,7 @@ CONFIG_CMD_BOOTCOUNT=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_BOOTLIMIT=3 CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y -CONFIG_SYS_BOOTCOUNT_ADDR=0x00900000 +CONFIG_SYS_BOOTCOUNT_ADDR=0x020D8024 CONFIG_SYS_BOOTCOUNT_MAGIC=0x0B01C041 CONFIG_IMX_WATCHDOG=y CONFIG_DEBUG_UART=y |
