]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
ARM: tegra: common: add reset reason at boot-up
authorBharat Nihalani <bnihalani@nvidia.com>
Wed, 4 Dec 2013 08:51:42 +0000 (14:21 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Fri, 6 Dec 2013 03:54:42 +0000 (19:54 -0800)
commit2225873e10ce45f9c908051e5e033b7960653fbd
tree1fcc8864ee41f0a260a0c1344a04a8f06d07fd9d
parentf5f7d4142d84c38628665fa00060b9b05a96e4f4
ARM: tegra: common: add reset reason at boot-up

PMC_RST_STATUS register bits[2:0] give the reason that caused device to
boot.

0 = POR
1 = WATCHDOG
2 = SENSOR
3 = SW_MAIN
4 = LP0

This is printed on every boot so that it helps know the reason for
device getting reset in some cases.

Bug 1414685

Change-Id: I4d5fea7e1fe8cd458674d8447005fedf8e45fe7e
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/337231
Reviewed-by: Automatic_Commit_Validation_User
arch/arm/mach-tegra/common.c