tegra124: Add a utility function to read the cause of the most recent reset

Hardware / Coreboot - Gabe Black [google.com] - 26 December 2014 12:39 UTC

When a watchdog reset happens, the SOC will reset but other parts of the system might not. In order to detect those situations we can check the rst_status register in the PMC.

BUG=chrome-os-partner:28559 TEST=With this and a change which uses the new function in the nyan boards, built for nyan, nyan_big and nyan_blaze. Booted normally, through EC reset, software reset ("reboot" command from the terminal), and through watch dog reset. Verified that the new code only triggered during the watchdog reset and that the system rebooted and was able to boot without going into recovery mode unnecessarily. BRANCH=nyan

Original-Change-Id: I7430768baa0304d4ec8524957a9cc37078ac5a71

4dc3e28 tegra124: Add a utility function to read the cause of the most recent reset.
src/soc/nvidia/tegra124/Makefile.inc | 1 +
src/soc/nvidia/tegra124/power.c | 5 +++++
src/soc/nvidia/tegra124/power.h | 11 +++++++++++
3 files changed, 17 insertions(+)

Upstream: review.coreboot.org


  • Share