summaryrefslogtreecommitdiff
path: root/chip/it83xx/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/it83xx/system.c')
-rw-r--r--chip/it83xx/system.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c
index e81d84f423..94ef635f91 100644
--- a/chip/it83xx/system.c
+++ b/chip/it83xx/system.c
@@ -36,9 +36,6 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds)
void system_hibernate(uint32_t seconds, uint32_t microseconds)
{
- if (board_hibernate)
- board_hibernate();
-
#ifdef CONFIG_HOSTCMD_PD
/* Inform the PD MCU that we are going to hibernate. */
host_command_pd_request_hibernate();
@@ -48,6 +45,10 @@ void system_hibernate(uint32_t seconds, uint32_t microseconds)
/* Flush console before hibernating */
cflush();
+
+ if (board_hibernate)
+ board_hibernate();
+
/* chip specific standby mode */
__enter_hibernate(seconds, microseconds);
}