summaryrefslogtreecommitdiff
path: root/board/asurada/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/asurada/board.c')
-rw-r--r--board/asurada/board.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index 0807fda7bc..90ef5b3cfe 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -316,3 +316,17 @@ int board_accel_force_mode_mask(void)
return 0;
return BIT(LID_ACCEL);
}
+
+static void board_suspend(void)
+{
+ if (board_get_version() >= 3)
+ gpio_set_level(GPIO_EN_5V_USM, 0);
+}
+DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_suspend, HOOK_PRIO_DEFAULT);
+
+static void board_resume(void)
+{
+ if (board_get_version() >= 3)
+ gpio_set_level(GPIO_EN_5V_USM, 1);
+}
+DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_resume, HOOK_PRIO_DEFAULT);