summaryrefslogtreecommitdiff
path: root/common/cmd_reginfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_reginfo.c')
-rw-r--r--common/cmd_reginfo.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/common/cmd_reginfo.c b/common/cmd_reginfo.c
index 198b9c7..aa9abf9 100644
--- a/common/cmd_reginfo.c
+++ b/common/cmd_reginfo.c
@@ -23,7 +23,6 @@
#include <common.h>
#include <command.h>
-#include <cmd_boot.h>
#if defined(CONFIG_8xx)
#include <mpc8xx.h>
#elif defined (CONFIG_405GP)
@@ -213,3 +212,15 @@ mfdcr(dmacr3), mfdcr(dmact3),mfdcr(dmada3), mfdcr(dmasa3), mfdcr(dmasb3) );
}
#endif /* CONFIG_COMMANDS & CFG_CMD_REGINFO */
+
+
+ /**************************************************/
+
+#if (defined(CONFIG_8xx) || defined(CONFIG_405GP)) && \
+ (CONFIG_COMMANDS & CFG_CMD_REGINFO)
+
+cmd_tbl_t U_BOOT_CMD(REGINFO) = MK_CMD_ENTRY(
+ "reginfo", 2, 1, do_reginfo,
+ "reginfo - print register information\n",
+);
+#endif