aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_portio.c
diff options
context:
space:
mode:
authorwdenk2003-06-29 21:03:46 +0000
committerwdenk2003-06-29 21:03:46 +0000
commitb0fce99bfc116c2ddb4506268d6e4a0a7054478d (patch)
tree6a11d99f1e350d9046c1c0e17298fa2bccd7db3e /common/cmd_portio.c
parenteeacb89cb311fe273fef0f20b2bacf589b36f8f4 (diff)
Fix some missing commands, cleanup header files
(autoscript, bmp, bsp, fat, mmc, nand, portio, ...)
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 */