Files
OpenCellular/include
Vincent Palatin a834638b29 lid_switch: allow to specify several lid GPIOs
Add a X-macro CONFIG_LID_SWITCH_GPIO_LIST to be able to optionally
specify more than one GPIO to check to find out whether the lid is open.
By default, use GPIO_LID_OPEN as before.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=smaug
BUG=chrome-os-partner:42110
TEST=on Smaug EVT2, define CONFIG_LID_SWITCH_GPIO_LIST as
LID_GPIO(GPIO_LID_OPEN) LID_GPIO(GPIO_BASE_PRES_L) and play with magnets
and the genuine lid, check we get the right "lid open" / "lid close"
messages on the console.

Change-Id: I9e7c67bb39f36f254d31d5861d535d69db754faa
Reviewed-on: https://chromium-review.googlesource.com/287852
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
2015-07-23 22:38:06 +00:00
..
2013-12-17 21:27:53 +00:00
2015-06-04 19:33:00 +00:00
2013-04-05 14:28:42 -07:00
2015-07-01 03:49:14 +00:00
2015-05-19 02:46:27 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2014-02-08 00:14:48 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2015-06-10 18:24:05 +00:00
2014-10-29 22:23:43 +00:00
2015-05-27 03:58:16 +00:00
2015-05-27 03:58:16 +00:00
2015-05-27 03:58:16 +00:00
2013-06-26 09:08:23 -07:00
2015-06-17 13:10:58 +00:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2015-06-17 13:10:58 +00:00
2015-06-25 17:21:50 +00:00
2015-06-18 19:07:00 +00:00
2011-12-07 19:10:02 +00:00
2015-04-30 02:31:22 +00:00
2015-03-06 08:48:39 +00:00
2012-10-25 14:12:11 -07:00
2012-10-25 14:12:10 -07:00
2015-06-18 19:07:00 +00:00
2013-10-30 23:10:10 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2012-08-09 17:40:37 -07:00
2015-06-18 19:07:00 +00:00
2015-05-07 23:39:06 +00:00
2015-06-18 19:07:00 +00:00
2015-06-17 13:10:58 +00:00
2013-11-21 00:09:09 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-01-20 20:56:43 +00:00