summaryrefslogtreecommitdiff
path: root/board/oak/board_revs.h
diff options
context:
space:
mode:
authorBen Lok <ben.lok@mediatek.com>2015-12-21 20:57:34 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-03-01 08:25:58 -0800
commit0c9e75f01729d3589d408f3345db7deaa9c04783 (patch)
tree5411023f080821f7c2984a539412096d6f00fb6b /board/oak/board_revs.h
parenta36a6ca96e864b2ce193df0874d84360cfce0c9e (diff)
downloadchrome-ec-0c9e75f01729d3589d408f3345db7deaa9c04783.tar.gz
oak: Add base accel & gyro via SPI bus for rev5
refer to commit d341615383f1ea5d3a540a67bcec777ba902bdfb, adds the base accelerometer as well as the gyroscope to the list of motion sensors on the board, connect with SPI bus. They are currently wrapped behind an ifdef for HAS_TASK_MOTIONSENSE and OAK_REV5. BUG=chrome-os-partner:50312 BRANCH=none TEST=Build Oak EC with driver enabled and verify that we can calcuate a valid lid angle. TEST=Verify that signs of accelerometer conform to those shown in the Chrome/Android/HTML5 doc/spec. See description in accelerometer_types.h TEST=Verify that signs of gyroscope conform to those shown in the "Sysfs interface to EC accelerometers" document. TEST=make buildall tests Change-Id: I4d900bc6bd7329db6ea53660fae86e5e2bbe9028 Signed-off-by: Ben Lok <ben.lok@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/319295 Commit-Ready: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board/oak/board_revs.h')
-rw-r--r--board/oak/board_revs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/oak/board_revs.h b/board/oak/board_revs.h
index ef25751b16..024784a9ae 100644
--- a/board/oak/board_revs.h
+++ b/board/oak/board_revs.h
@@ -11,7 +11,8 @@
#define OAK_REV2 2
#define OAK_REV3 3
#define OAK_REV4 4
-#define OAK_REV_LAST OAK_REV4
+#define OAK_REV5 5
+#define OAK_REV_LAST OAK_REV5
#define OAK_REV_DEFAULT OAK_REV3
#if !defined(BOARD_REV)