mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
power_button: allow to modify the active level
On most platforms, the power button is active low, but the power button on Ryu is active high. Add CONFIG_POWER_BUTTON_ACTIVE_STATE to override the default active state. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=on Ryu, use the servo pwr_button to start and stop the AP. Change-Id: I11c6bb3c700bccd3606ce1fa1a69905671792990 Reviewed-on: https://chromium-review.googlesource.com/207274 Reviewed-by: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Vic Yang <victoryang@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
63429076b3
commit
d7cc6d5911
@@ -715,6 +715,9 @@
|
||||
/* Compile common code to support power button debouncing */
|
||||
#undef CONFIG_POWER_BUTTON
|
||||
|
||||
/* Force the active state of the power button : 0(default if unset) or 1 */
|
||||
#undef CONFIG_POWER_BUTTON_ACTIVE_STATE
|
||||
|
||||
/* Allow the power button to send events while the lid is closed */
|
||||
#undef CONFIG_POWER_BUTTON_IGNORE_LID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user