summaryrefslogtreecommitdiff
path: root/board/asurada
diff options
context:
space:
mode:
authorYilin Yang <kerker@google.com>2021-01-13 18:00:10 +0800
committerCommit Bot <commit-bot@chromium.org>2021-01-14 03:41:24 +0000
commit4a9f80fa10ca403c5f6978293ba4973351e533f6 (patch)
tree17eef7c2fe7eabe0b82dc71e9fa1ca9c5ad277f0 /board/asurada
parent45c7f9c249c23cc27242efca3a4058ed1b3d1213 (diff)
downloadchrome-ec-4a9f80fa10ca403c5f6978293ba4973351e533f6.tar.gz
asurada: lower hook priority for update_rotation_matrix
If we don't lower the priority, it may get the wrong board id. Then it won't update the rotation matrix. 1. priority 1: update board id value 2. priority 2: update rotation matrix BUG=b:177384512 TEST=DUT can pass all sensor related tests in factory toolkit BRANCH=none Signed-off-by: kerker <kerker@chromium.org> Change-Id: Ie11f084375de6ec9f30c093051d48773931c32e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626804 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Yilin Yang (kerker) <kerker@chromium.org> Tested-by: Yilin Yang (kerker) <kerker@chromium.org>
Diffstat (limited to 'board/asurada')
-rw-r--r--board/asurada/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index 3a7016df5e..9b3b5077eb 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -653,7 +653,7 @@ static void update_rotation_matrix(void)
motion_sensors[BASE_GYRO].rot_standard_ref =
&base_standard_ref_rev0;
}
-DECLARE_HOOK(HOOK_INIT, update_rotation_matrix, HOOK_PRIO_INIT_ADC + 1);
+DECLARE_HOOK(HOOK_INIT, update_rotation_matrix, HOOK_PRIO_INIT_ADC + 2);
/* TCS3400 private data */
static struct als_drv_data_t g_tcs3400_data = {
@@ -727,7 +727,7 @@ static void update_rotation_matrix(void)
&base_standard_ref;
}
}
-DECLARE_HOOK(HOOK_INIT, update_rotation_matrix, HOOK_PRIO_INIT_ADC + 1);
+DECLARE_HOOK(HOOK_INIT, update_rotation_matrix, HOOK_PRIO_INIT_ADC + 2);
#endif
struct motion_sensor_t motion_sensors[] = {