summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Xie <hank.xie@quanta.corp-partner.google.com>2022-03-27 22:49:50 -0400
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-29 01:51:36 +0000
commit9196f57b1c33ccae691e53755093c97eaf30ae6d (patch)
tree54842df1c056bce6ad87a56dbe4f842a3b953f5b
parent5600b1f4408ca36eb2c678290e82f8400ec82b97 (diff)
downloadchrome-ec-9196f57b1c33ccae691e53755093c97eaf30ae6d.tar.gz
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 <hank.xie@quanta.corp-partner.google.com> Cq-Depend: chromium:3535547 Change-Id: I32949737d600ed136d1e2d434c153d87c18dfb49 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3554182 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--board/lantis/board.c8
1 files 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 */