summaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine/reset.c
diff options
context:
space:
mode:
authorT Michael Turney <mturney@codeaurora.org>2021-03-18 09:16:44 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-04-15 19:07:56 +0000
commitb97e6f713e1e2891b7ea8b76b34cfb24a2d74f64 (patch)
treeb7d3cdc3e7c6977c3484ba41d4492d6b67d70238 /src/mainboard/google/herobrine/reset.c
parent0c9eb3153386f9a3e70f3777df7e036a6c6249a3 (diff)
herobrine: sc7280: Provide initial mainboard support
BUG=b:182963902 TEST=Validated on qualcomm sc7280 developement board Change-Id: I428cf1a461ee63215f5683abbfed90202d1b2a88 Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
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);
+}