Add orientation support in EC: report through IIO |
||
Issue descriptionWith BMI160, we already have hardware support for double tap and significant motion. orientation is supported. Kionix also support orientation. We should add orientation (for the sensor in the screen) support and report to the AP. Which interface to use? IIO does not provide a direct interface. I am thinking of using IIO_ENUM for a channel: UNKONW, .. up to SCREEN_ORIENTATION_REVERSE_LANDSCAPE (see Android interface). Looking into input as well, where an orientation key is supportted (KEY_ROTATE_DISPLAY) but it is an input key the user press on to rotate the display by 90 degrees.
,
May 30 2017
,
Aug 9 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/ec/+/e656b970e204309c1a665f154a5972ed85305911 commit e656b970e204309c1a665f154a5972ed85305911 Author: Nick Vaccaro <nvaccaro@chromium.org> Date: Wed Aug 09 00:34:11 2017 sensors: add bmi160 & kionix orientation driver BRANCH=none BUG=chromium:718919 TEST=make buildall -j works, orientation works when enabled on gru and scarlet. Change-Id: I16dcfa5d9dea39c082d98190fa1bb6e496168b17 Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/540124 Tested-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-by: Gwendal Grignou <gwendal@chromium.org> [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/driver/accelgyro_bmi160.h [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/driver/accel_kionix.c [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/common/motion_sense.c [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/driver/accel_kx022.h [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/driver/accel_kionix.h [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/driver/accelgyro_bmi160.c [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/include/config.h [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/include/motion_sense.h [modify] https://crrev.com/e656b970e204309c1a665f154a5972ed85305911/include/ec_commands.h |
||
►
Sign in to add a comment |
||
Comment 1 by nvaccaro@chromium.org
, May 25 2017