coreboot/src
Vadim Bendebury a36f3f4d53 UPSTREAM: cr50: check if the new image needs to be enabled and act on it
The AP sends the Cr50 a request to enable the new firmware image. If
the new Cr50 image was found and enabled, the AP expects the Cr50 to
reset the device in 1 second.

While waiting for the Cr50 to reset, the AP logs a newly defined event
and optionally shuts down the system. By default the x86 systems power
off as shutting those systems down is not board specific.

BRANCH=gru,reef
BUG=b:35580805
TEST=built a reef image, observed that in case cr50 image is updated,
     after the next reboot the AP stops booting before loading depthcharge,
     reports upcoming reset and waits for it.

     Once the system is booted after that, the new event can be found
     in the log:

  localhost ~ # mosys eventlog list
  ...
  7 | 2017-03-23 18:42:12 | Chrome OS Developer Mode
  8 | 2017-03-23 18:42:13 | Unknown | 0xac
  9 | 2017-03-23 18:42:21 | System boot | 46
  ...

Change-Id: I12706aebb64d6fb6b53386d8e9379b5781a7a84e
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b9126fe46c
Original-Change-Id: I45fd6058c03f32ff8edccd56ca2aa5359d9b21b1
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18946
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/498315
2017-05-07 16:25:54 -07:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: arch/x86: Share storage data structures between early stages 2017-05-02 20:24:09 -07:00
commonlib UPSTREAM: commonlib: Add ID for STORAGE_DATA 2017-04-28 22:25:39 -07:00
console UPSTREAM: console: rework log level to not be reliant on ROMSTAGE_CONST 2017-04-26 13:36:55 -07:00
cpu UPSTREAM: nb/amd/amdk8: Link reset_test.c 2017-04-28 22:25:37 -07:00
device UPSTREAM: lib/edid.c: Allow use of when not NGI 2017-05-07 07:41:12 -07:00
drivers UPSTREAM: drivers/{aspeed,xgi_z9s}/Kconfig: Don't override NATIVE_VGA_USE_EDID 2017-05-07 07:41:14 -07:00
ec UPSTREAM: ec/google/chromeec: provide reboot function 2017-05-07 16:25:53 -07:00
include UPSTREAM: cr50: check if the new image needs to be enabled and act on it 2017-05-07 16:25:54 -07:00
lib UPSTREAM: lib/edid: Save the display ASCII string 2017-05-07 07:41:13 -07:00
mainboard UPSTREAM: mb/google/poppy: Add eMMC as thermal sensor 2017-05-07 16:25:51 -07:00
northbridge UPSTREAM: nb/intel/sandybridge/early_init: Use register name 2017-05-07 16:25:53 -07:00
soc UPSTREAM: soc/intel/skylake: Enable SATA ports 2017-05-07 16:25:49 -07:00
southbridge UPSTREAM: sb/intel/bd82x6x/bootblock: Use register name 2017-05-07 16:25:52 -07:00
superio UPSTREAM: superio/fintek: Add support for Fintek F71808A 2017-03-30 05:29:57 -07:00
vboot UPSTREAM: vboot: Separate board name and version number in FWID with a dot 2017-05-02 20:24:01 -07:00
vendorcode UPSTREAM: cr50: check if the new image needs to be enabled and act on it 2017-05-07 16:25:54 -07:00
Kconfig UPSTREAM: cr50: check if the new image needs to be enabled and act on it 2017-05-07 16:25:54 -07:00