gru: Add watchdog reset support

Hardware / Coreboot - Julius Werner [chromium.org] - 20 September 2016 14:50 UTC

This patch adds support to reboot the whole board after a hardware watchdog reset, to avoid the usual TPM issues. Work 100% equivalent to
Veyron.

From my tests it looks like both SRAM and PMUSRAM get preserved across warm reboots. I'm putting the WATCHDOG_TOMBSTONE into PMUSRAM since that makes it easier to deal with in coreboot (PMUSRAM is currently not mapped as cached, so we don't need to worry about flushing the results back before reboot).

BRANCH=None BUG=chrome-os-partner:56600 TEST='stop daisydog; cat > /dev/watchdog', press CTRL+D, wait 30 seconds. Confirm that system reboots correctly without entering recovery and we get a HW watchdog event in the eventlog.

Change-Id: I317266df40bbb221910017d1a6bdec6a1660a511

b6bf1dd gru: Add watchdog reset support
src/mainboard/google/gru/Makefile.inc | 1 +
src/mainboard/google/gru/bootblock.c | 4 ++++
src/soc/rockchip/rk3399/clock.c | 6 ++++++
src/soc/rockchip/rk3399/include/soc/clock.h | 1 +
src/soc/rockchip/rk3399/include/soc/memlayout.ld | 5 +++++
5 files changed, 17 insertions(+)

Upstream: review.coreboot.org


  • Share