From 9196f57b1c33ccae691e53755093c97eaf30ae6d Mon Sep 17 00:00:00 2001 From: Hank Xie Date: Sun, 27 Mar 2022 22:49:50 -0400 Subject: landia: Tune lid and base accel rotation configuration. This patch tunes the lid and base accel sensors based on the actual situation of product. BUG=none BRANCH=dedede TEST=On landia. Set SSFC and make sure the LID sensor works normally. Signed-off-by: Hank Xie Cq-Depend: chromium:3535547 Change-Id: I32949737d600ed136d1e2d434c153d87c18dfb49 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3554182 Reviewed-by: Devin Lu Reviewed-by: Tommy Chung Reviewed-by: Diana Z --- board/lantis/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/lantis/board.c b/board/lantis/board.c index ce9047d2e8..43ca935c87 100644 --- a/board/lantis/board.c +++ b/board/lantis/board.c @@ -296,15 +296,15 @@ static struct lsm6dsm_data lsm6dsm_data = LSM6DSM_DATA; /* Matrix to rotate accelrator into standard reference frame */ static const mat33_fp_t base_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} + { FLOAT_TO_FP(1), 0, 0}, + { 0, 0, FLOAT_TO_FP(1)} }; static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, + { FLOAT_TO_FP(-1), 0, 0}, { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} + { 0, 0, FLOAT_TO_FP(1)} }; /* Drivers */ -- cgit v1.2.1