summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-08-15 16:34:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-21 01:07:55 -0700
commit729a4ba2bdc20675e24ed9e7d0a98d19934d72f8 (patch)
treee6096452677021e40378d7e50aaa722a9257c048 /include/flash.h
parent60b77099e0b7a0bd40e7504c2752091c378a2f1d (diff)
downloadchrome-ec-729a4ba2bdc20675e24ed9e7d0a98d19934d72f8.tar.gz
EFS: Switch active slot when current slot is invalid
When EFS finds the active slot is invalid, it tries the other slot. This patch makes the other slot active so that the following boots will try the other slot first. This patch also replaces enum flash_rw_slot with system_image_copy_t. The new APIs are therefore renamed from *_slot to *_copy. Basically, this makes vboot see slots as a conceptual place instead of physical spaces bound to flash storage. BUG=b:65028930 BRANCH=none TEST=On Fizz, verify: 1. RW_B is old and updated by soft sync. RW_B is activated and executed after reboot. System continues to boot to OS. 2. RW_A is old and updated by soft sync. RW_A is activated and executed after reboot. System continues to boot to OS. Change-Id: Icf97da13e651e7a931b9d507052b9422566eb16c Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/648449
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/flash.h b/include/flash.h
index d52f1f7ce7..c769f5753d 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -102,31 +102,6 @@ enum flash_region {
FLASH_REGION_COUNT
};
-/**
- * Get active slot
- *
- * Active slot contains an image which is being executed or will be executed
- * after sysjump.
- *
- * @return Active slot index
- */
-enum flash_rw_slot flash_get_active_slot(void);
-
-/**
- * Get updatable (non-active) slot
- *
- * @return Updatable slot index
- */
-enum flash_rw_slot flash_get_update_slot(void);
-
-/**
- * Translate slot index to image index
- *
- * @param slot Slot index to convert.
- * @return Image index converted from <slot>
- */
-enum system_image_copy_t flash_slot_to_image(enum flash_rw_slot slot);
-
/*****************************************************************************/
/* Low-level methods, for use by flash_common. */