diff options
-rw-r--r-- | common/system.c | 10 | ||||
-rw-r--r-- | include/config.h | 5 | ||||
-rw-r--r-- | include/system.h | 4 |
3 files changed, 12 insertions, 7 deletions
diff --git a/common/system.c b/common/system.c index c886fd4e3f..96fc57f4b9 100644 --- a/common/system.c +++ b/common/system.c @@ -1187,7 +1187,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; @@ -1215,10 +1214,15 @@ enum ec_status host_command_vbnvcontext(struct host_cmd_handler_args *args) return EC_RES_SUCCESS; } + +/* + * TODO(crbug.com/239197) : Adding both versions to the version mask is a + * temporary workaround for a problem in the cros_ec driver. Drop + * EC_VER_MASK(0) once cros_ec driver can send the correct version. + */ DECLARE_HOST_COMMAND(EC_CMD_VBNV_CONTEXT, host_command_vbnvcontext, - EC_VER_MASK(EC_VER_VBNV_CONTEXT)); -#endif /* CONFIG_HOSTCMD_VBNV_CONTEXT */ + EC_VER_MASK(EC_VER_VBNV_CONTEXT) | EC_VER_MASK(0)); enum ec_status host_command_reboot(struct host_cmd_handler_args *args) { diff --git a/include/config.h b/include/config.h index fa9eb793ff..ffcb183ab9 100644 --- a/include/config.h +++ b/include/config.h @@ -1970,12 +1970,9 @@ /* Panic when status of PD MCU reflects that it has crashed */ #undef CONFIG_HOSTCMD_PD_PANIC -/* Board supports RTC host commands */ +/* Board supports RTC host commands*/ #undef CONFIG_HOSTCMD_RTC -/* For access to VBNV on-EC battery-backed storage */ -#undef CONFIG_HOSTCMD_VBNV_CONTEXT - /* Command to issue AP reset */ #undef CONFIG_HOSTCMD_AP_RESET diff --git a/include/system.h b/include/system.h index a08492c7b8..f2d08f74b9 100644 --- a/include/system.h +++ b/include/system.h @@ -274,6 +274,10 @@ int system_get_chip_unique_id(uint8_t **id); * not implemented. */ enum system_bbram_idx { + /* + * TODO(crbug.com/693210): Consider boards without vbnvcontext + * host command. + */ SYSTEM_BBRAM_IDX_VBNVBLOCK0 = 0, /* * ... |