summaryrefslogtreecommitdiff
path: root/board/kano/sensors.c
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-051-221/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* board: Do not enable gyroscope by defaultGwendal Grignou2021-09-231-10/+0
| | | | | | | | | | | | | | | | | | | | | Enable gyroscope only when the AP needs it. It is not used by the EC. For lid calculation, set frequency at 10HZ, the drivers will calculate higher frequencies when needed. Modify other boards as well: Use awk '/\.type = MOTIONSENSE_TYPE_GYRO,/ { check_config=1 } \ /\.config = / { if (check_config) { print FILENAME,$0 } } \ /\.type = MOTIONSENSE_TYPE_[^G]/ { check_config=0 }' board/*/sensors.c | \ cut -d ' ' -f 1' to locate the impacted files (board.c as well). BUG=none BRANCH=none TEST=Check rotation is still working on brya Change-Id: I45d82d00c30e35541df80d1b7805f8302b3d98ff Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170174 Reviewed-by: Keith Short <keithshort@chromium.org>
* kano: change lid accel and base accel/gyroDavid Huang2021-08-231-34/+36
| | | | | | | | | | | | | | | Change Lid accel to kx022 and base accel/gyro to icm40608. BUG=b:192370253 BRANCH=brya TEST=make buildall -j succeeded. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I034c2da62d1671294b4ce81536a0254a67c63240 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3098118 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* kano: remove unused adc channelDavid Huang2021-08-231-7/+0
| | | | | | | | | | | | | Remove unused adc channel. BUG=b:192370253 BRANCH=brya TEST=make buildall -j succeeded. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I9174073cbaffd7aef51876eede57bfa20bed7b28 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3098120 Reviewed-by: caveh jalali <caveh@chromium.org>
* kano: remove als tcs4300David Huang2021-08-181-101/+0
| | | | | | | | | | | | | Remove als tcs4300 function. BUG=b:192370253 BRANCH=brya TEST=make buildall -j succeeded. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I8e5f5145da807449ff90d9400072161516c35fa9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3098117 Reviewed-by: caveh jalali <caveh@chromium.org>
* sensor: fix LSM6DSO drv_data overlappingelmo_lan2021-07-191-2/+4
| | | | | | | | | | | | | | | | | The base g-sensor provides 2 functions: accelerometer and gyro. EC need to assign 2 different addresses to store each calibration data. BRANCH=none BUG=none TEST=make BOARD Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com> Change-Id: I90f5c4daa51b63788f102c0689c59e566255ffc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023757 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com> Tested-by: Boris Mittelberg <bmbm@google.com>
* kano: Initial EC imageDavid Wu2021-07-091-0/+335
Create the initial EC image for the kano variant by copying the brya reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:193052432 BRANCH=None TEST=make BOARD=kano Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: Icc2418fbc9ac568fd2aae640c3d379867be6254a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3012671 Reviewed-by: Boris Mittelberg <bmbm@google.com>