coreboot-kgpe-d16/src/soc/rockchip/rk3399
Lin Huang df3321aa34 rockchip/rk3399: reset system if DDR init fails
We found sdram may fail in pctl_cfg(), so we check the status in this
function. If it exceeds 100ms still in this function, we will restart
the system. We also found there are rare chances DDR training fails,
so also restart system in that case.

BUG=chrome-os-partner:57988
BRANCH=None
TEST=coreboot resets on failure and eventually the system comes up

Change-Id: Icc0688da028a8f4f81eafe36bbaa79fdf2bcea74
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 89e45f8352f62e19a203316330aba14ccc5c8b11
Original-Change-Id: If4e78983abcfdfe1e0e26847448d86169e598700
Original-Signed-off-by: Lin Huang <hl@rock-chips.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/397439
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/17045
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-10-25 17:08:58 +02:00
..
include/soc rockchip/rk3399: Add Type-C PHY init 2016-10-08 16:40:09 +02:00
bl31_plat_params.c rockchip: rk3399: pass board specific message to BL31 2016-06-12 12:14:36 +02:00
bootblock.c rockchip/rk3399: Add pwm_regulator.c for pwm then ramp boot up cpu 2016-08-31 20:32:43 +02:00
chip.h rockchip: rk3399: initialize display for eDP 2016-06-03 18:08:10 +02:00
clock.c rockchip/rk3399: Actually remove big CPU initialization from bootblock 2016-10-07 17:55:09 +02:00
display.c rk3399: display: Use edid_set_framebuffer_bits_per_pixel() helper 2016-10-18 19:52:44 +02:00
gpio.c rockchip: Remove pulls for gpio_output(), clean up code 2016-10-04 21:17:37 +02:00
Kconfig rockchip/rk3399: Remove CONFIG_ARM64_A53_ERRATUM_843419 2016-10-04 21:14:52 +02:00
Makefile.inc rockchip/rk3399: Add pwm_regulator.c for pwm then ramp boot up cpu 2016-08-31 20:32:43 +02:00
mmu_operations.c rockchip: rk3399: enable mmu 2016-05-09 08:42:04 +02:00
saradc.c rockchip: rk3399: support saradc 2016-05-09 08:46:42 +02:00
sdram.c rockchip/rk3399: reset system if DDR init fails 2016-10-25 17:08:58 +02:00
soc.c rockchip/rk3399: Move big CPU cluster initialization into ramstage 2016-10-06 21:48:50 +02:00
timer.c
tsadc.c rockchip: rk3399: add tsadc driver 2016-05-18 20:19:29 +02:00
usb.c rockchip/rk3399: Add Type-C PHY init 2016-10-08 16:40:09 +02:00