From c85220654f03e1c0815627c36fb3928aef4e6850 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 6 May 2014 15:44:14 -0700 Subject: nyan*: Detect watchdog resets and reset the whole machine. When a watchdog reset happens, the SOC will reset but other parts of the system might not. That puts the machine in a funny state and may prevent it from booting properly. BUG=chrome-os-partner:28559 TEST=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 Change-Id: Id92411c928344547fcd97e45063e4aff52d2e9e8 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/198582 Reviewed-by: Tom Warren Reviewed-by: Andrew Bresticker Commit-Queue: Gabe Black Tested-by: Gabe Black (cherry picked from commit b298be41c0959c58aeb8be5bf15141549da2504c) Signed-off-by: Marc Jones Reviewed-on: http://review.coreboot.org/7900 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/mainboard/google/nyan/Makefile.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mainboard/google/nyan/Makefile.inc') diff --git a/src/mainboard/google/nyan/Makefile.inc b/src/mainboard/google/nyan/Makefile.inc index 30cd27d9fc..b66cd555fb 100644 --- a/src/mainboard/google/nyan/Makefile.inc +++ b/src/mainboard/google/nyan/Makefile.inc @@ -32,6 +32,7 @@ bootblock-y += bootblock.c bootblock-y += pmic.c bootblock-y += reset.c +romstage-y += reset.c romstage-y += romstage.c romstage-y += sdram_configs.c romstage-$(CONFIG_CHROMEOS) += chromeos.c -- cgit v1.2.3