diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-01-28 16:59:41 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-02 17:04:46 +0000 |
commit | 3ef4610e2f6fb37e1495d7b35bce807887019f90 (patch) | |
tree | 78c8b131587cc59c0eaed6dfb9e9d12890e65d12 /common/system.c | |
parent | 086efb5aaab014a31ef2bd1ee54662e4698b522d (diff) | |
download | chrome-ec-3ef4610e2f6fb37e1495d7b35bce807887019f90.tar.gz |
Remove CONFIG_HOSTCMD_VBNV_CONTEXT
This is no longer set by any boards, and we don't intend to use it on
future projects again.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I7aa64d52bc197778873e7eb880961c37fb9f34e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657721
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/common/system.c b/common/system.c index 068e6bb37d..76561f786f 100644 --- a/common/system.c +++ b/common/system.c @@ -1556,39 +1556,6 @@ DECLARE_HOST_COMMAND(EC_CMD_GET_BOARD_VERSION, EC_VER_MASK(0)); #endif -#ifdef CONFIG_HOSTCMD_VBNV_CONTEXT -enum ec_status host_command_vbnvcontext(struct host_cmd_handler_args *args) -{ - const struct ec_params_vbnvcontext *p = args->params; - struct ec_response_vbnvcontext *r; - int i; - - switch (p->op) { - case EC_VBNV_CONTEXT_OP_READ: - r = args->response; - for (i = 0; i < EC_VBNV_BLOCK_SIZE; ++i) - if (system_get_bbram(SYSTEM_BBRAM_IDX_VBNVBLOCK0 + i, - r->block + i)) - return EC_RES_ERROR; - args->response_size = sizeof(*r); - break; - case EC_VBNV_CONTEXT_OP_WRITE: - for (i = 0; i < EC_VBNV_BLOCK_SIZE; ++i) - if (system_set_bbram(SYSTEM_BBRAM_IDX_VBNVBLOCK0 + i, - p->block[i])) - return EC_RES_ERROR; - break; - default: - return EC_RES_ERROR; - } - - return EC_RES_SUCCESS; -} -DECLARE_HOST_COMMAND(EC_CMD_VBNV_CONTEXT, - host_command_vbnvcontext, - EC_VER_MASK(EC_VER_VBNV_CONTEXT)); -#endif /* CONFIG_HOSTCMD_VBNV_CONTEXT */ - enum ec_status host_command_reboot(struct host_cmd_handler_args *args) { struct ec_params_reboot_ec p; |