diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-04-07 16:43:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-08 12:34:29 -0700 |
commit | 2c26cad2ad223490d1adc7909fbdb317cc5c2c23 (patch) | |
tree | 2f737a966bae814853b40e77cc102f9bbdbe156c /include | |
parent | 62cbb5cafe3cb4ec770c7c6ab0f19e86460f2a9c (diff) | |
download | chrome-ec-2c26cad2ad223490d1adc7909fbdb317cc5c2c23.tar.gz |
Support RW_B in sysjump command when applicablestabilize-8172.47.B
If we #define CONFIG_RW_B, the firmware image can have two RW
components. This CL expands the "sysinfo" command so that we can
see which image we're running from when RW_B is also a
possibility.
BUG=chrome-os-partner:50701
BRANCH=none
TEST=make buildall; test RW update on Cr50
Using test/tpm_test/tpmtest.py, update the RW firmware and reboot
several times to switch between RW_A and RW_B. Note that the
"sysjump" command reports the correct image each time.
Change-Id: Iba3778579587f6df198728d3783cb848b4fd199d
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/337664
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/system.h b/include/system.h index 220e0790e7..0d2eebdf1e 100644 --- a/include/system.h +++ b/include/system.h @@ -37,7 +37,10 @@ void chip_save_reset_flags(int flags); enum system_image_copy_t { SYSTEM_IMAGE_UNKNOWN = 0, SYSTEM_IMAGE_RO, - SYSTEM_IMAGE_RW + SYSTEM_IMAGE_RW, +#ifdef CONFIG_RW_B + SYSTEM_IMAGE_RW_B, +#endif }; /** |