diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-04-20 17:44:38 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-09 23:20:08 -0700 |
commit | 9c488952251502b5f56e4b2d5181a332a27f8639 (patch) | |
tree | 5c382faeddba47af0f9b0039c3918e85ae92c4f0 /include/button.h | |
parent | e8982ea3cd66941e518b829a37834a534e71b3bc (diff) | |
download | chrome-ec-9c488952251502b5f56e4b2d5181a332a27f8639.tar.gz |
button: Allow board to define recovery buttons
This patch declares recovery_buttons array, where each board
lists recovery buttons. Pressing those while the board reboots
makes the system enter recovery mode.
BUG=none
BRANCH=none
TEST=buildall
Change-Id: I1f204156efbd6d2a507d67ba90f75ce857b03559
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/486944
Diffstat (limited to 'include/button.h')
-rw-r--r-- | include/button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/button.h b/include/button.h index 286565fdbc..8909ba5f11 100644 --- a/include/button.h +++ b/include/button.h @@ -43,6 +43,12 @@ struct button_config { extern const struct button_config buttons[]; /* + * Buttons used to decide whether recovery is requested or not + */ +extern const struct button_config *recovery_buttons[]; +extern const int recovery_buttons_count; + +/* * Button initialization, called from main. */ void button_init(void); |