summaryrefslogtreecommitdiff
path: root/common/cmd_irq.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-11-11 10:36:28 -0600
committerWolfgang Denk <wd@denx.de>2009-12-02 23:23:20 +0100
commitc253122395753abb9e531d8906c5265dc8803fb1 (patch)
tree96d806f19c6c4fa04a3afc1e7caf7f3dc5120756 /common/cmd_irq.c
parenta5dd4dc64fe68e549c5ffcf6a048281b5ba94752 (diff)
downloadu-boot-imx-c253122395753abb9e531d8906c5265dc8803fb1.zip
u-boot-imx-c253122395753abb9e531d8906c5265dc8803fb1.tar.gz
u-boot-imx-c253122395753abb9e531d8906c5265dc8803fb1.tar.bz2
Move do_irqinfo() to common/cmd_irq.c
cmd_irq.c is a much better home and it is already conditionally compiled based on CONFIG_CMD_IRQ. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'common/cmd_irq.c')
-rw-r--r--common/cmd_irq.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cmd_irq.c b/common/cmd_irq.c
index 4604a5a..2c7e6bb 100644
--- a/common/cmd_irq.c
+++ b/common/cmd_irq.c
@@ -47,3 +47,12 @@ U_BOOT_CMD(
"enable or disable interrupts",
"[on, off]"
);
+
+/* Implemented in $(CPU)/interrupts.c */
+int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+
+U_BOOT_CMD(
+ irqinfo, 1, 1, do_irqinfo,
+ "print information about IRQs",
+ ""
+);