rockchip/rk3399: Add watchdog support in pmusram
To catch early hangs in resume, this sets up the watchdog before
anything else in the pmusram code (ignoring setting up the stack...).
This uses hard coded settings for the watchdog until the proper
watchdog restore later on in the firmware/kernel.

This also restores the old watchdog register values before the PLLs
are restored to make sure we don't temporarily switch over to a 1/3s
timeout on the watchdog when the pclk_wdt goes from 4MHz to 100MHz.

Change-Id: I8f7652089a88783271b17482117b4609330abe80
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
1 parent ff4735c commit 5b886432dce06ad2bbc42150eab779a6e0cd8727
@Derek Basehore Derek Basehore authored on 23 Apr 2018
Lin Huang committed on 15 May 2018
Showing 6 changed files
View
plat/rockchip/rk3399/drivers/dram/suspend.c
View
plat/rockchip/rk3399/drivers/pmu/pmu.c
View
plat/rockchip/rk3399/drivers/secure/secure.c
View
plat/rockchip/rk3399/drivers/secure/secure.h
View
plat/rockchip/rk3399/drivers/soc/soc.c
View
plat/rockchip/rk3399/drivers/soc/soc.h