diff options
author | Caveh Jalali <caveh@chromium.org> | 2022-11-01 02:02:56 -0700 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-11-12 23:01:47 +0000 |
commit | 603de3f763ce7cde43fe50c9d9bb75e86a5c868c (patch) | |
tree | 06712ce2f6ed07854e78e345391a1490a5e3e6cb /src/security/vboot | |
parent | 675de7524c495dc42f1b47d04aecc6eeabd5d0a1 (diff) |
ec/google/chromeec: Deprecate dev_index from google_chromeec_reboot
This removes the dev_index argument from the google_chromeec_reboot
API. It's always set to 0, so don't bother passing it.
BUG=b:258126464
BRANCH=none
TEST=none
Change-Id: Iadc3d7c6c1e048e4b1ab8f8cec3cb8eb8db38e6a
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69373
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/vboot')
-rw-r--r-- | src/security/vboot/ec_sync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c index b3b17dd10e..47a6dbd350 100644 --- a/src/security/vboot/ec_sync.c +++ b/src/security/vboot/ec_sync.c @@ -56,7 +56,7 @@ void vboot_sync_ec(void) case VB2_REQUEST_REBOOT_EC_TO_RO: printk(BIOS_INFO, "EC Reboot requested. Doing cold reboot\n"); - if (google_chromeec_reboot(0, EC_REBOOT_COLD, 0)) + if (google_chromeec_reboot(EC_REBOOT_COLD, 0)) printk(BIOS_EMERG, "Failed to get EC to cold reboot\n"); halt(); @@ -65,7 +65,7 @@ void vboot_sync_ec(void) /* Only for EC-EFS */ case VB2_REQUEST_REBOOT_EC_SWITCH_RW: printk(BIOS_INFO, "Switch EC slot requested. Doing cold reboot\n"); - if (google_chromeec_reboot(0, EC_REBOOT_COLD, + if (google_chromeec_reboot(EC_REBOOT_COLD, EC_REBOOT_FLAG_SWITCH_RW_SLOT)) printk(BIOS_EMERG, "Failed to get EC to cold reboot\n"); @@ -510,7 +510,7 @@ vb2_error_t vb2ex_ec_get_expected_image_hash(enum vb2_firmware_selection select, */ vb2_error_t vb2ex_ec_disable_jump(void) { - if (google_chromeec_reboot(0, EC_REBOOT_DISABLE_JUMP, 0)) + if (google_chromeec_reboot(EC_REBOOT_DISABLE_JUMP, 0)) return VB2_ERROR_UNKNOWN; return VB2_SUCCESS; @@ -531,7 +531,7 @@ vb2_error_t vb2ex_ec_jump_to_rw(void) { struct stopwatch sw; - if (google_chromeec_reboot(0, EC_REBOOT_JUMP_RW, 0)) + if (google_chromeec_reboot(EC_REBOOT_JUMP_RW, 0)) return VB2_ERROR_UNKNOWN; /* Give the EC 3 seconds to sysjump */ |