diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-05-30 14:18:55 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-28 21:50:51 -0700 |
commit | e42acfe20013d971fc93d0bee1f117645fe5ebdf (patch) | |
tree | dec9dffc7b104d039df11068bfccc22c8600c604 /include/vboot.h | |
parent | c4157673b909896884f594052ac2e19b0cfc2280 (diff) | |
download | chrome-ec-e42acfe20013d971fc93d0bee1f117645fe5ebdf.tar.gz |
vboot: Add vboot for EC by EC
This patch adds vboot for EC by EC (vboot EC) for x86 systems.
When ec is transitioning s5->s3, it checks the power supply is
enough to boot AP or not. If not, it runs other checks and may
finally validate and jump to a RW image.
BUG=b:38462249
BRANCH=none
TEST=Boot Fizz on barrel jack and type-c charger.
Change-Id: I5988b0595976370c5303c45541702ae89d86fc97
Reviewed-on: https://chromium-review.googlesource.com/518254
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/vboot.h')
-rw-r--r-- | include/vboot.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/vboot.h b/include/vboot.h new file mode 100644 index 0000000000..ba13328544 --- /dev/null +++ b/include/vboot.h @@ -0,0 +1,15 @@ +/* Copyright 2017 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/** + * Verify RW image and jump to it + * + * Calling this API results in one of the followings: + * 1. Returns, expecting PD will provide enough power after negotiation + * 2. Jumps to RW (no return) + * 3. Returns, requesting more power + * 4. Returns, requesting recovery + */ +void vboot_ec(void); |