diff options
Diffstat (limited to 'common/system_common.c')
-rw-r--r-- | common/system_common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/system_common.c b/common/system_common.c index d75ac188ea..bf78622115 100644 --- a/common/system_common.c +++ b/common/system_common.c @@ -277,6 +277,15 @@ static int command_sysjump(int argc, char **argv) DECLARE_CONSOLE_COMMAND(sysjump, command_sysjump); +static int command_reboot(int argc, char **argv) +{ + uart_puts("Rebooting!\n\n\n"); + uart_flush_output(); + system_reset(1); + return EC_SUCCESS; +} +DECLARE_CONSOLE_COMMAND(reboot, command_reboot); + /*****************************************************************************/ /* Host commands */ |