summaryrefslogtreecommitdiffstats
path: root/common/cmd_misc.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-27 21:31:46 +0000
committerwdenk <wdenk>2003-06-27 21:31:46 +0000
commit8bde7f776c77b343aca29b8c7b58464d915ac245 (patch)
tree20f1fd99975215e7c658454a15cdb4ed4694e2d4 /common/cmd_misc.c
parent993cad9364c6b87ae429d1ed1130d8153f6f027e (diff)
downloadu-boot-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.gz
u-boot-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.xz
u-boot-8bde7f776c77b343aca29b8c7b58464d915ac245.zip
* Code cleanup:LABEL_2003_06_27_2340
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'common/cmd_misc.c')
-rw-r--r--common/cmd_misc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/cmd_misc.c b/common/cmd_misc.c
index e3e0e44869..76fe26733a 100644
--- a/common/cmd_misc.c
+++ b/common/cmd_misc.c
@@ -52,5 +52,22 @@ int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return 0;
}
+/* Implemented in $(CPU)/interrupts.c */
+#if (CONFIG_COMMANDS & CFG_CMD_IRQ)
+int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+
+cmd_tbl_t U_BOOT_CMD(IRQINFO) = MK_CMD_ENTRY(
+ "irqinfo", 1, 1, do_irqinfo,
+ "irqinfo - print information about IRQs\n",
+ NULL
+);
+#endif /* CONFIG_COMMANDS & CFG_CMD_IRQ */
+
+cmd_tbl_t U_BOOT_CMD(MISC) = MK_CMD_ENTRY(
+ "sleep" , 2, 2, do_sleep,
+ "sleep - delay execution for some time\n",
+ "N\n"
+ " - delay execution for N seconds (N is _decimal_ !!!)\n"
+);
#endif /* CFG_CMD_MISC */