summaryrefslogtreecommitdiff
path: root/board/glados/board.h
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2015-09-11 15:49:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-17 22:19:01 -0700
commit574c8065710432f5a91fd8dd11d1fa28e2be1f3b (patch)
tree9bebd7b40f8890e949936dbe99e3af6f8291097a /board/glados/board.h
parent18ff33318f0be282be7b23a6427ff767c2f39546 (diff)
downloadchrome-ec-574c8065710432f5a91fd8dd11d1fa28e2be1f3b.tar.gz
GLaDOS: Add lid accelerometer.
This commit adds the lid accelerometer to the list of motion sensors on the board. It currently wrapped behind an ifdef for HAS_TASK_MOTIONSENSE due to space contraints. BUG=chrome-os-partner:43494 BRANCH=None TEST=Build GLaDOS EC with driver enabled and verify that valid accelerometer data is read, and that range, resolution, and odr can all be modified. TEST=Verified that signs of accelerometer data conform to those shown in the doc. TEST=make buildall tests CQ-DEPEND=CL:299013 CQ-DEPEND=CL:300510 Change-Id: Ib566f8eb2818c0694bf673af244aedbc91eac80f Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/299504 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/glados/board.h')
-rw-r--r--board/glados/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/glados/board.h b/board/glados/board.h
index bbbf7c111e..994b6d8177 100644
--- a/board/glados/board.h
+++ b/board/glados/board.h
@@ -9,6 +9,7 @@
#define __CROS_EC_BOARD_H
/* Optional features */
+#define CONFIG_ACCEL_KX022
#define CONFIG_ADC
#define CONFIG_ALS
#define CONFIG_ALS_OPT3001