summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/aleena/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/aleena/board.c b/board/aleena/board.c
index 465ca59f3d..2441e26d51 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)
{