coreboot-kgpe-d16/src/soc
Julius Werner 2460a5564f veyron: Trigger hard reset (via GPIO) if last reboot was caused by watchdog
Like Nyan, Veyron boards use a GPIO to reset the system so that we can
make the accompanying TPM reset secure and unforgeable. The normal
kernel reboot driver knows that, but the SoC-internal watchdog doesn't.

This patch implements a check for the global reset status register in
the early bootblock and triggers a hard_reset() when it matches "first
global watchdog reset" or "second global watchdog reset". Seems that
the difference between the two is is a choice controlled by
wdt_glb_srst_ctrl (unconfirmed), and we want this code to run in both
cases.

BRANCH=None
BUG=chrome-os-partner:33141
TEST=Run 'mem w 0xff800000 0x9' from the command line, watch how you end
up in recovery without this patch but can boot normally with it.

Change-Id: Ice79648831e1e97d22325711da9e82bbf6bf3c75
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: 5d7cb52b2c2dcb2fff0bf83fc168439dade4b1b7
Original-Change-Id: I2581bde84f0445c15896060544e9acb60de91c8c
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/231734
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/9629
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
2015-04-15 16:27:23 +02:00
..
imgtec pistachio: implement clock setup for I2C0 2015-04-14 12:08:44 +02:00
intel broadwell: Remove TPM device from lpc.asl 2015-04-14 12:12:36 +02:00
marvell CBFS: Automate ROM image layout and remove hardcoded offsets 2015-04-14 09:01:27 +02:00
nvidia tegra132: lock down VPR 2015-04-14 12:07:39 +02:00
qualcomm CBFS: Automate ROM image layout and remove hardcoded offsets 2015-04-14 09:01:27 +02:00
rockchip veyron: Trigger hard reset (via GPIO) if last reboot was caused by watchdog 2015-04-15 16:27:23 +02:00
samsung timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
ucb kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
Makefile.inc cosmos: add template for soc and board files 2015-04-09 00:21:21 +02:00