summaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/herobrine/reset.c')
-rw-r--r--src/mainboard/google/herobrine/reset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/herobrine/reset.c b/src/mainboard/google/herobrine/reset.c
new file mode 100644
index 0000000000..9b5810f20b
--- /dev/null
+++ b/src/mainboard/google/herobrine/reset.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <ec/google/chromeec/ec.h>
+#include <reset.h>
+
+/* Can't do a "real" reset before the PMIC is initialized in QcLib (romstage),
+ but this works well enough for our purposes. */
+void do_board_reset(void)
+{
+ google_chromeec_reboot(0, EC_REBOOT_COLD, 0);
+}