Files
OpenCellular/common
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
..
2015-06-25 17:21:50 +00:00
2013-12-20 05:07:58 +00:00
2014-05-21 20:32:17 +00:00
2015-06-04 19:33:00 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-05-19 02:46:27 +00:00
2015-04-07 23:20:14 +00:00
2013-10-25 20:12:49 +00:00
2015-07-01 03:49:14 +00:00
2014-03-06 21:33:09 +00:00
2015-06-30 17:18:59 +00:00
2015-07-21 19:56:24 +00:00
2014-01-14 09:19:45 +00:00
2015-03-31 23:00:33 +00:00
2015-06-09 12:10:42 +00:00
2014-05-21 20:32:17 +00:00
2015-05-12 20:54:37 +00:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-05-19 02:46:27 +00:00