summaryrefslogtreecommitdiff
path: root/board/samus/board.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-18 09:35:56 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-22 01:36:57 +0000
commitabd7f09288c6601767603f94c0c5444df6550f16 (patch)
tree5c6645593702780834c2c437ff39563dfb4eac2b /board/samus/board.h
parent146b93e3cf0fd1d647fe9f46e1282eb876b53ca1 (diff)
downloadchrome-ec-abd7f09288c6601767603f94c0c5444df6550f16.tar.gz
samus: fix tap for battery doesn't work in G3 with AC
Fix bug causing tap for battery not to work in G3 when AC is attached. Problem was that the lightbar was being held in reset and would not light up. BUG=chrome-os-partner:34722 BRANCH=samus TEST=tested on samus with AC attached and unattached in S3 and in G3, tap for battery lights up the lightbar. Also verified that plugging and unpluggin AC in S3 and G3 causes lightbar to light up. Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/236560 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> (cherry picked from commit ee5dbe94a0896b3edadd539ca4a2682ba718a205) Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: I0fbd989399d372d287467200512bbdf2551884d3 Reviewed-on: https://chromium-review.googlesource.com/237117 Tested-by: Duncan Laurie <dlaurie@chromium.org> Commit-Queue: Duncan Laurie <dlaurie@chromium.org> Trybot-Ready: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'board/samus/board.h')
-rw-r--r--board/samus/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/samus/board.h b/board/samus/board.h
index 3ff24ba990..fad50ec80d 100644
--- a/board/samus/board.h
+++ b/board/samus/board.h
@@ -173,6 +173,13 @@ enum als_id {
/* Discharge battery when on AC power for factory test. */
int board_discharge_on_ac(int enable);
+/* Bit masks for turning on PP5000 rail in G3 */
+#define PP5000_IN_G3_AC (1 << 0)
+#define PP5000_IN_G3_LIGHTBAR (1 << 1)
+
+/* Enable/disable PP5000 rail mask in G3 */
+void set_pp5000_in_g3(int mask, int enable);
+
/* Define for sensor tasks */
#define CONFIG_SENSOR_BATTERY_TAP 0
#define CONFIG_GESTURE_TAP_OUTER_WINDOW_T 200