ec/google/chromeec: Remove google_chromeec_vbnv_context()

With CB:65012, google_chromeec_vbnv_context() is no longer used. Remove
it from the codebase.

BUG=b:178689388
TEST=./util/abuild/abuild -t GOOGLE_STOUT -a -x

Change-Id: I717f600f0f73c3ca932b6a442a9d5b90c35c8f3b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65326
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Yu-Ping Wu 2022-06-23 10:23:29 +08:00 committed by Felix Held
parent 6e25ab79cd
commit be5e7851b8
2 changed files with 0 additions and 40 deletions

View File

@ -949,45 +949,6 @@ uint32_t google_chromeec_get_sku_id(void)
return resp.sku_id;
}
int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len)
{
struct ec_params_vbnvcontext params = {
.op = is_read ? EC_VBNV_CONTEXT_OP_READ :
EC_VBNV_CONTEXT_OP_WRITE,
};
struct ec_response_vbnvcontext resp = {};
struct chromeec_command cmd = {
.cmd_code = EC_CMD_VBNV_CONTEXT,
.cmd_version = EC_VER_VBNV_CONTEXT,
.cmd_data_in = &params,
.cmd_data_out = &resp,
.cmd_size_in = sizeof(params),
.cmd_size_out = is_read ? sizeof(resp) : 0,
.cmd_dev_index = 0,
};
int retries = 3;
if (len != EC_VBNV_BLOCK_SIZE)
return -1;
if (!is_read)
memcpy(&params.block, data, EC_VBNV_BLOCK_SIZE);
retry:
if (google_chromeec_command(&cmd)) {
printk(BIOS_ERR, "failed to %s vbnv_ec context: %d\n",
is_read ? "read" : "write", (int)cmd.cmd_code);
mdelay(10); /* just in case */
if (--retries)
goto retry;
}
if (is_read)
memcpy(data, &resp.block, EC_VBNV_BLOCK_SIZE);
return cmd.cmd_code;
}
static uint16_t google_chromeec_get_uptime_info(
struct ec_response_uptime_info *resp)
{

View File

@ -77,7 +77,6 @@ uint64_t google_chromeec_get_events_b(void);
int google_chromeec_clear_events_b(uint64_t mask);
int google_chromeec_kbbacklight(int percent);
void google_chromeec_post(uint8_t postcode);
int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len);
uint8_t google_chromeec_get_switches(void);
bool google_chromeec_get_ap_watchdog_flag(void);