summaryrefslogtreecommitdiff
path: root/chip/ish/system.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-02-22 11:02:06 -0700
committerJett Rink <jettrink@chromium.org>2019-02-26 14:32:45 +0000
commit916b0771e4bdaafb710b5c964c2ceba4128a1c51 (patch)
tree0958c60fa2ae3be69f840e4fbab33e687f2cb037 /chip/ish/system.c
parent456d85195c3ceede52d4c219dfccc51f67b78544 (diff)
downloadchrome-ec-916b0771e4bdaafb710b5c964c2ceba4128a1c51.tar.gz
ish: add reboot support
Make the `reboot` EC commands (console and host) operational BRANCH=none BUG=none TEST=`reboot` on ISH console will power cycle ISH Change-Id: I2dfb4437bf110493cea91087c65b62df5d08be05 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/1483278 Reviewed-by: Li1 Feng <li1.feng@intel.com> Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Diffstat (limited to 'chip/ish/system.c')
-rw-r--r--chip/ish/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/ish/system.c b/chip/ish/system.c
index f532e8bf85..6c8550b0b4 100644
--- a/chip/ish/system.c
+++ b/chip/ish/system.c
@@ -46,6 +46,12 @@ uint32_t chip_read_reset_flags(void)
void _system_reset(int flags, int wake_from_hibernate)
{
+ /*
+ * ISH HW looks at the rising edge of this bit to
+ * trigger a MIA reset.
+ */
+ ISH_RST_REG = 0;
+ ISH_RST_REG = 1;
}
void system_reset(int flags)