coreboot/src/ec/google/chromeec
Aaron Durbin f857ce5e22 UPSTREAM: ec/google/chromeec: let platform prepare for reboot when resetting EC
This fixes an issue on systems where the S3 state in the pm1 control
registers are not cleared when vboot determines recovery mode is
required on an S3 resume. The EC code will reboot the system knowing
that the EC was in RW. However, on subsequent entry into romstage the
S3 path will be taken and fails to recover cbmem -- forcing another
reboot. To work around that, signal to the platform a reboot is
happening and let the platform perform the necessary fix ups to the
register state.

BUG=chrome-os-partner:62627

Change-Id: I2c0bdffb80979954021203c798cf9bce56eca7d6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 96a4317fa9
Original-Change-Id: Ic144b11b4968c92a1273b8d9eb9dc10f0056bf3d
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18295
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/439150
2017-02-08 07:27:11 -08:00
..
acpi UPSTREAM: ec/google/chromeec: Add support for tablet mode switch driver 2017-02-07 10:29:15 -08:00
chip.h
crosec_proto.c
ec.c UPSTREAM: ec/google/chromeec: let platform prepare for reboot when resetting EC 2017-02-08 07:27:11 -08:00
ec.h google/chromeec: Add command to control USB PD role 2016-11-22 18:36:43 -08:00
ec_commands.h UPSTREAM: google/chromeec: Sync ec_commands.h host events with ec codebase 2016-11-10 18:31:53 -08:00
ec_i2c.c
ec_lpc.c UPSTREAM: google/chromeec: Ensure data is ready before reading it 2016-08-22 23:26:37 -07:00
ec_mec.c ec/google/chromeec/ec_lpc: Declare used IO ports as a resource 2016-05-06 18:59:00 +02:00
ec_message.h
ec_spi.c UPSTREAM: spi: Pass pointer to spi_slave structure in spi_setup_slave 2016-12-08 12:30:13 -08:00
Kconfig UPSTREAM: chromeec: Chrome EC firmware source selection for EC and PD firmwares 2017-01-30 16:48:41 -08:00
Makefile.inc UPSTREAM: chromeec: Chrome EC firmware source selection for EC and PD firmwares 2017-01-30 16:48:41 -08:00
smihandler.c UPSTREAM: ec/google/chromeec: provide common SMI handler helpers 2016-07-15 16:50:24 -07:00
smm.h UPSTREAM: ec/google/chromeec: provide common SMI handler helpers 2016-07-15 16:50:24 -07:00
switches.c UPSTREAM: ec/google/chromeec: query cbmem for retrain status 2016-12-16 07:51:35 -08:00
vboot_storage.c google/chromeec: implement vboot_(save|retrieve)_hash API 2016-02-04 17:34:58 +01:00
vstore.c google/chromeec: Add temporary storage interface 2016-02-04 17:21:04 +01:00