cros: Update ec_commands to latest version
This file has changed quite a bit in the last 5 years as the capabilities of the ECs have grown. Sync it up with the copy in coreboot commit b9141f2215. The only change is the addition of EC_VBNV_BLOCK_SIZE_V2. This is needed because U-Boot uses the new v2 vboot API and this is not currently fully supported by Chromium OS firmware. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -365,7 +365,7 @@ static int process_cmd(struct ec_state *ec,
|
||||
struct fmap_entry *entry;
|
||||
int ret, size;
|
||||
|
||||
entry = &ec->ec_config.region[EC_FLASH_REGION_RW];
|
||||
entry = &ec->ec_config.region[EC_FLASH_REGION_ACTIVE];
|
||||
|
||||
switch (req->cmd) {
|
||||
case EC_VBOOT_HASH_RECALC:
|
||||
@@ -420,7 +420,7 @@ static int process_cmd(struct ec_state *ec,
|
||||
|
||||
switch (req->region) {
|
||||
case EC_FLASH_REGION_RO:
|
||||
case EC_FLASH_REGION_RW:
|
||||
case EC_FLASH_REGION_ACTIVE:
|
||||
case EC_FLASH_REGION_WP_RO:
|
||||
entry = &ec->ec_config.region[req->region];
|
||||
resp->offset = entry->offset;
|
||||
|
Reference in New Issue
Block a user