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 | |
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>
-rw-r--r-- | chip/stm32/bkpdata.h | 10 | ||||
-rw-r--r-- | common/system.c | 33 | ||||
-rw-r--r-- | include/config.h | 3 |
3 files changed, 0 insertions, 46 deletions
diff --git a/chip/stm32/bkpdata.h b/chip/stm32/bkpdata.h index 07f20aed49..434043eb52 100644 --- a/chip/stm32/bkpdata.h +++ b/chip/stm32/bkpdata.h @@ -35,16 +35,6 @@ enum bkpdata_index { #ifdef CONFIG_STM32_RESET_FLAGS_EXTENDED BKPDATA_INDEX_SAVED_RESET_FLAGS_2, /* Saved reset flags (cont) */ #endif -#ifdef CONFIG_HOSTCMD_VBNV_CONTEXT - BKPDATA_INDEX_VBNV_CONTEXT0, - BKPDATA_INDEX_VBNV_CONTEXT1, - BKPDATA_INDEX_VBNV_CONTEXT2, - BKPDATA_INDEX_VBNV_CONTEXT3, - BKPDATA_INDEX_VBNV_CONTEXT4, - BKPDATA_INDEX_VBNV_CONTEXT5, - BKPDATA_INDEX_VBNV_CONTEXT6, - BKPDATA_INDEX_VBNV_CONTEXT7, -#endif #ifdef CONFIG_SOFTWARE_PANIC BKPDATA_INDEX_SAVED_PANIC_REASON, /* Saved panic reason */ BKPDATA_INDEX_SAVED_PANIC_INFO, /* Saved panic data */ 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; diff --git a/include/config.h b/include/config.h index a7177856b3..551ae563e2 100644 --- a/include/config.h +++ b/include/config.h @@ -2192,9 +2192,6 @@ /* Board supports RTC host commands */ #undef CONFIG_HOSTCMD_RTC -/* For access to VBNV on-EC battery-backed storage */ -#undef CONFIG_HOSTCMD_VBNV_CONTEXT - /* EC controls the board's SKU ID and can report that to the AP */ #undef CONFIG_HOSTCMD_SKUID |