diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-03-10 12:05:47 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-26 19:31:25 +0000 |
commit | eb1406644716d6c3c87fdeea4551eb6ea37be649 (patch) | |
tree | 8f5209485fd585aa08f384bca2dd2f9c5d3982ae /include/console.h | |
parent | 9b420804d88a7adf8a1ded8bd12e52e1aa8ddd84 (diff) | |
download | chrome-ec-eb1406644716d6c3c87fdeea4551eb6ea37be649.tar.gz |
accel: clapper: glimmer: Add support for accelerometer interrupt.stabilize-5696.B
Adding in support for accelerometer interrupt for use currently
in clapper and glimmer. This is disabled by default and can
be enabled with CONFIG_ACCEL_INTERRUPTS.
BUG=none
BRANCH=rambi
TEST=Manual test on a glimmer using accelint console command.
On console enter:
accelint 0 32
When you tap the lid, it should fire the interrupt and print msg
to console.
accelint 1 32
Tap the base and it will fire another interrupt.
Change-Id: Iaab324945e34d527140399ec4f06efd812a62840
Original-Change-Id: I0329112fdcae3c8adc0ca07e74fef7a591d4b9a1
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/190099
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191549
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 41bc9decbd..8106e54f56 100644 --- a/include/console.h +++ b/include/console.h @@ -28,6 +28,7 @@ struct console_command { enum console_channel { CC_COMMAND = 0, /* Console command (interactive I/O). Use this only * inside a console command routine. */ + CC_ACCEL, CC_CHARGER, CC_CHIPSET, CC_CLOCK, |