summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorMichael van Slingerland <michael@deviousops.nl>2016-01-13 19:31:17 +0100
committerTom Rini <trini@konsulko.com>2016-01-13 21:05:25 -0500
commit4e42e29fd6aec3aa6b85c41fb944e2908a457074 (patch)
tree35b5bc6eb9129b001d47f674802cf01844fb8d36 /include/command.h
parent79206c04a9269f87fd943713db70fbc53ec05ed3 (diff)
cmd_boot: Add a poweroff command
Add a 'poweroff' command to boot commands, this only gets enabled if the board Kconfig does a "select CMD_POWEROFF". Signed-off-by: Michael van Slingerland <michael@deviousops.nl> [hdegoede@redhat.com: Make the cmd conditional on a CMD_POWEROFF Kconfig] Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 2ae9b6c2e6..0524c0beb0 100644
--- a/include/command.h
+++ b/include/command.h
@@ -110,6 +110,7 @@ extern int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
char *const argv[]);
extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
/*
* Error codes that commands return to cmd_process(). We use the standard 0