summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--power/skylake.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/power/skylake.c b/power/skylake.c
index e13604559d..8f9533d79a 100644
--- a/power/skylake.c
+++ b/power/skylake.c
@@ -11,6 +11,7 @@
#include "hooks.h"
#include "intel_x86.h"
#include "lpc.h"
+#include "panic.h"
#include "power_button.h"
#include "skylake.h"
#include "system.h"
@@ -163,6 +164,11 @@ static void chipset_handle_reboot(void)
chip_save_reset_flags(RESET_FLAG_AP_OFF);
}
+#ifdef CONFIG_CHIP_PANIC_BACKUP
+ /* Ensure panic data if any is backed up. */
+ chip_panic_data_backup();
+#endif
+
ccprintf("Restarting system with PMIC.\n");
/* Flush console */
cflush();