summaryrefslogtreecommitdiff
path: root/common/cmd_portio.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_portio.c')
-rw-r--r--common/cmd_portio.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/common/cmd_portio.c b/common/cmd_portio.c
index afa39e1ebd9..ad84b81dc2d 100644
--- a/common/cmd_portio.c
+++ b/common/cmd_portio.c
@@ -29,7 +29,6 @@
#include <common.h>
#include <command.h>
-#include <cmd_portio.h>
#if (CONFIG_COMMANDS & CFG_CMD_PORTIO)
@@ -96,6 +95,12 @@ int do_portio_out (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
+cmd_tbl_t U_BOOT_CMD(PORTIO_OUT) = MK_CMD_ENTRY(
+ "out", 3, 1, do_portio_out,
+ "out - write datum to IO port\n",
+ "[.b, .w, .l] port value\n - output to IO port\n"
+);
+
int do_portio_in (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
{
uint addr = in_last_addr;
@@ -154,4 +159,11 @@ int do_portio_in (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
+cmd_tbl_t U_BOOT_CMD(PORTIO_IN) = MK_CMD_ENTRY(
+ "in", 2, 1, do_portio_in,
+ "in - read data from an IO port\n",
+ "[.b, .w, .l] port\n"
+ " - read datum from IO port\n"
+);
+
#endif /* CFG_CMD_PORTIO */