summaryrefslogtreecommitdiff
path: root/board/vell/sensors.c
Commit message (Collapse)AuthorAgeFilesLines
* board/vell: Fix compilation with clangTom Hughes2022-10-181-13/+5
| | | | | | | | | | | | BRANCH=none BUG=b:172020503, b:202062363 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I8131e8a38cea468c1bbe2fbd37d8eba89b6d28b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3953257 Reviewed-by: Keith Short <keithshort@chromium.org>
* Update license boilerplate text in source code filesMike Frysinger2022-09-121-1/+1
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* vell: tcs3400: update coeffs for als and rgb sensorIsaac Lee2022-08-121-19/+19
| | | | | | | | | | | | | | | | Update board files for vell to use new coefficients for als and rgb sensor. BUG=b:189986978 BRANCH=main TEST='make -j BOARD=vell' in EC repo, verified builds succeed. Change-Id: I4bf1f1911a58aaa7b9dd068698f4528c1a94643d Signed-off-by: Isaac Lee <isaaclee@google.com> Signed-off-by: YH Lin <yueherngl@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3819159 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org>
* board/vell/sensors.c: Format with clang-formatJack Rosenthal2022-07-011-13/+12
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Iff32ac9ffbd170e7987d738f01a39af8907fbe16 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729067 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* vell: Fix thermal high/halt point version 3Devin Lu2022-04-271-4/+4
| | | | | | | | | | | BUG=b:216026302 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I3dbfc89256a65ed9b832e10e4f62cafd2fc6a356 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3607911 Reviewed-by: caveh jalali <caveh@chromium.org>
* vell: Update thermal high/halt point version 3Devin Lu2022-04-111-5/+5
| | | | | | | | | | | BUG=b:216026302 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ie1a27714fbc80ee08bcfb67271389580f0a2ad76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3577327 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* gpio: cleanup header usage for i2cKeith Short2022-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | i2c.h only requires the enum gpio_signal, so use gpio_signal.h instead of gpio.h. The builld doesn't compare due to an ASSERT() calls in i2c-stm32f4.c because the line numbers changed. Before this change: 80068b2: f240 2332 movw r3, #562 80068b6: 48a4 ldr r0, [pc, #656] 80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail> After this change: 80068b2: f44f 730d mov.w r3, #564 80068b6: 48a4 ldr r0, [pc, #656] 80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail> BUG=b:218856245 BRANCH=none TEST=compare_build.sh Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0f9f428d5c575c444b9df69f71a0ed6c4b3e378c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489094 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* vell: Update thermal high/halt pointDevin Lu2022-01-261-43/+12
| | | | | | | | | | | BUG=b:203839956, b:216026302 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ifcfc57e42f4c0a97354c42cc681563dbe3be3587 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3411513 Reviewed-by: caveh jalali <caveh@chromium.org>
* vell: Configure thermal sensorsDevin Lu2021-12-241-63/+85
| | | | | | | | | | | | | | | | | | | | | There are 5 thermal sensors on Vell. The sensor map as following: ADC_TEMP_SENSOR_1_SOC: Close to SOC. ADC_TEMP_SENSOR_2_CHARGER: Close to charger. ADC_TEMP_SENSOR_3_WWAN: Close to wwan. ADC_TEMP_SENSOR_4_DDR: Close to DDR. ADC_TEMP_SENSOR_5_REGULATOR: Close to 3/5V regulator. BUG=b:203839956 BRANCH=none TEST=EC console "temps". Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I54aeec5f6040a1592583e921d58dc39d148b7a95 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3276021 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* vell: Remove unnecessary functionDevin Lu2021-12-241-98/+0
| | | | | | | | | | | | | | | | | | | This patch removes unnecessary function as following: 1. Remove Accelerometers. 2. Remove tablet mode. 3. Remove USB Type A. 4. Remove keyboard backlight enabling. 5. Remove side buttons. BUG=b:205908918 BRANCH=none TEST=make BOARD=vell Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I784b9b53300d7d343ebf6e73f8c1834da5382ae5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3276020 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* motion_sensor: Remove |int_signal| fieldGwendal Grignou2021-12-141-6/+0
| | | | | | | | | | | | | | | | | | | | | |int_signal| was used to check interrupt signal to protect from interrupt coming while processing FIFO. Instead, use loop until all FIFO samples are processed, as used in linux kernel sensor fifo routine. [See for example see st_lsm6dsx_handler_thread() in driver/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c]. BUG=b:207055975,b:129159505 BRANCH="asurada atlas chameleon dedede drallion endeavour fpmcu grunt hatch icarus kalista keeby kukui mistral nami nocturne octopus poppy puff quiche rammus sarien trogdor volteer zork" TEST=testall, both cros_ec and zephyr. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I3cfd63c73a7361522ddf42a686dcffdac38d8741 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3328808 Reviewed-by: Diana Z <dzigterman@chromium.org>
* vell: Initial EC imagestabilize-14345.B-mainShon Wang2021-11-161-0/+418
Create the initial EC image for the vell 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:205908918 BRANCH=None TEST=make BOARD=vell, make buildall Signed-off-by: Shon Wang <shon.wang@quanta.corp-partner.google.com> Change-Id: I4e5bd91e643a8ef1a1ec6cf1dbb191d192433cb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3277679 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Tested-by: Devin Lu <Devin.Lu@quantatw.com> Commit-Queue: YH Lin <yueherngl@chromium.org>