summaryrefslogtreecommitdiffstats
path: root/commands/reset.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:13 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:13 +0200
commit4b07af6730d2811363f158f5175138116038f7b9 (patch)
tree206044270884f80204a2da69e02ca3b6f5803185 /commands/reset.c
parentd08c60e9d77dc0f83946cd702d383451865e66dd (diff)
downloadbarebox-4b07af6730d2811363f158f5175138116038f7b9.tar.gz
barebox-4b07af6730d2811363f158f5175138116038f7b9.tar.xz
svn_rev_643
structure cleanup
Diffstat (limited to 'commands/reset.c')
-rw-r--r--commands/reset.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/commands/reset.c b/commands/reset.c
new file mode 100644
index 0000000000..1cc3702ff9
--- /dev/null
+++ b/commands/reset.c
@@ -0,0 +1,16 @@
+#include <common.h>
+#include <command.h>
+
+static int cmd_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+{
+ do_reset();
+
+ /* Not reached */
+ return 1;
+}
+
+U_BOOT_CMD_START(reset)
+ .maxargs = 1,
+ .cmd = cmd_reset,
+ .usage = "Perform RESET of the CPU",
+U_BOOT_CMD_END