diff options
-rw-r--r-- | board/aleena/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/aleena/board.c b/board/aleena/board.c index 62ba075f78..b5332e8658 100644 --- a/board/aleena/board.c +++ b/board/aleena/board.c @@ -137,6 +137,8 @@ static void board_detect_motionsensor(void) int ret; int val; + if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) + return; if (base_accelgyro_config != BASE_GYRO_NONE) return; @@ -158,6 +160,7 @@ static void board_detect_motionsensor(void) } DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_detect_motionsensor, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_INIT, board_detect_motionsensor, HOOK_PRIO_INIT_ADC + 2); void board_update_sensor_config_from_sku(void) { |