diff options
author | Siyu Qin <qinsiyu@huaqin.corp-partner.google.com> | 2022-03-04 10:55:54 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-09 09:53:48 +0000 |
commit | 08f62670fa6ef87212ccaf6fc13cc947e26976e4 (patch) | |
tree | c0bc601ba4ce4534732fda6bafc638a4d0f83b24 /include/lid_switch.h | |
parent | c755fffea0e2e05733e61ea254d820612e869b7a (diff) | |
download | chrome-ec-08f62670fa6ef87212ccaf6fc13cc947e26976e4.tar.gz |
mrbland: Disable lid detect when the base is detached
According to the OEM requirement, the lid detection should be closed
when the folio keyboard is detached.
BUG=b:198509824
BRANCH=trogdor
TEST=make BOARD=mrbland -j
Change-Id: I5c595a9a85dff1107aea7b3008165c46cc6fb51f
Signed-off-by: Siyu Qin <qinsiyu@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3499778
Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/lid_switch.h')
-rw-r--r-- | include/lid_switch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lid_switch.h b/include/lid_switch.h index a999abdda7..627a41d62c 100644 --- a/include/lid_switch.h +++ b/include/lid_switch.h @@ -9,6 +9,7 @@ #define __CROS_EC_LID_SWITCH_H #include "common.h" +#include "stdbool.h" /** * Return non-zero if lid is open. @@ -24,4 +25,11 @@ int lid_is_open(void); */ void lid_interrupt(enum gpio_signal signal); +/** + * Disable lid interrupt and set the lid open, when base is disconnected. + * + * @param enable Flag that enables or disables lid interrupt. + */ +void enable_lid_detect(bool enable); + #endif /* __CROS_EC_LID_SWITCH_H */ |