From 916b0771e4bdaafb710b5c964c2ceba4128a1c51 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Fri, 22 Feb 2019 11:02:06 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/1483278 Reviewed-by: Li1 Feng Reviewed-by: Edward Hill Commit-Queue: ChromeOS CL Exonerator Bot --- chip/ish/system.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chip/ish/system.c') 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) -- cgit v1.2.1