summaryrefslogtreecommitdiff
path: root/common/x86_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/x86_power.c')
-rw-r--r--common/x86_power.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/common/x86_power.c b/common/x86_power.c
index 9f1fd175d5..48d05b6d6d 100644
--- a/common/x86_power.c
+++ b/common/x86_power.c
@@ -588,20 +588,6 @@ void x86_power_task(void)
/*****************************************************************************/
/* Console commands */
-static int command_x86power(int argc, char **argv)
-{
- /* Print current state */
- ccprintf("Current X86 state: %d (%s)\n", state, state_names[state]);
-
- /* Forcing a power state from EC is deprecated */
- if (argc > 1)
- ccputs("Use 'powerbtn' instead of 'x86power s0'.\n");
-
- return EC_SUCCESS;
-}
-DECLARE_CONSOLE_COMMAND(x86power, command_x86power);
-
-
static int command_x86reset(int argc, char **argv)
{
int is_cold = 1;
@@ -616,4 +602,7 @@ static int command_x86reset(int argc, char **argv)
x86_power_reset(is_cold);
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(x86reset, command_x86reset);
+DECLARE_CONSOLE_COMMAND(x86reset, command_x86reset,
+ "[warm | cold]",
+ "Issue x86 reset",
+ NULL);