diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2020-04-09 18:52:56 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-13 22:05:53 +0000 |
commit | adc20080797ae9958b5355ba743b6b97290bf07f (patch) | |
tree | 1db7da2fbbc9a5eff640761fe1f14e708b3587b7 /include/config.h | |
parent | 9c87cc0a1a83c65939704fb933e737269cf6455d (diff) | |
download | chrome-ec-adc20080797ae9958b5355ba743b6b97290bf07f.tar.gz |
Implement sequence for detecting trigger for AP RO verification
When supported, the AP RO verification would be triggered by the
operator pressing and keeping pressed the power button and then
pressing and releasing a few times the refresh key.
As proposed in this patch, to trigger the verification the operator
must complete the sequence within 3 seconds by pressing the refresh
key three times.
The sequences is controlled by periodic polling. Enabling refresh key
press interrupts was investigated, the issue is that the key generates
plenty of interrupts due to dribbling, to the tune of a hundred each
time it is pressed. It is much cheaper to just poll every 20 ms.
The CONFIG_AP_RO_VERIFICATION config flag controls enabling of this
feature.
BUG=b:141191727
TEST=enabled the new feature and verified proper operation by both
detecting the trigger and abandoning the sequence due to released
power button or not enough times pressed refresh key.
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Change-Id: I55376a87009d6f8020358ad11db1e47d0b8393ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2144944
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 5e556b7224..c2dbc278e0 100644 --- a/include/config.h +++ b/include/config.h @@ -1414,6 +1414,9 @@ /* Trigger building the image with all format strings extracted. */ #undef CONFIG_EXTRACT_PRINTF_STRINGS +/* Include AP RO verification support. */ +#undef CONFIG_AP_RO_VERIFICATION + /* * Enable EC-CR50 communication (a.k.a. EC-EFS2). This is for CR50 config only. */ |