mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
cros_ec: Support the full-size vboot context
The v2 format is 64-bytes in size. Support this and drop v1 since it is not used anymore. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1e465eb669
commit
656d744770
1 changed files with 3 additions and 5 deletions
|
@ -343,15 +343,13 @@ static int process_cmd(struct ec_state *ec,
|
|||
|
||||
switch (req->op) {
|
||||
case EC_VBNV_CONTEXT_OP_READ:
|
||||
/* TODO(sjg@chromium.org): Support full-size context */
|
||||
memcpy(resp->block, ec->vbnv_context,
|
||||
EC_VBNV_BLOCK_SIZE);
|
||||
len = 16;
|
||||
EC_VBNV_BLOCK_SIZE_V2);
|
||||
len = EC_VBNV_BLOCK_SIZE_V2;
|
||||
break;
|
||||
case EC_VBNV_CONTEXT_OP_WRITE:
|
||||
/* TODO(sjg@chromium.org): Support full-size context */
|
||||
memcpy(ec->vbnv_context, req->block,
|
||||
EC_VBNV_BLOCK_SIZE);
|
||||
EC_VBNV_BLOCK_SIZE_V2);
|
||||
len = 0;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue