summaryrefslogtreecommitdiff
path: root/common/cmd_fpga.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_fpga.c
parent993cad9364c6b87ae429d1ed1130d8153f6f027e (diff)
downloadu-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.zip
u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.gz
u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.bz2
* Code cleanup:
- 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_fpga.c')
-rw-r--r--common/cmd_fpga.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c
index 4e4c4ab..f8ae52a 100644
--- a/common/cmd_fpga.c
+++ b/common/cmd_fpga.c
@@ -27,11 +27,11 @@
*/
#include <common.h>
#include <command.h>
-#include <cmd_fpga.h>
-#include <fpga.h>
+#include <cmd_bsp.h>
#if (CONFIG_COMMANDS & CFG_CMD_NET)
#include <net.h>
#endif
+#include <fpga.h>
#if 0
#define FPGA_DEBUG
@@ -155,4 +155,13 @@ static int fpga_get_op( char *opstr )
return op;
}
+cmd_tbl_t U_BOOT_CMD(FPGA) = MK_CMD_ENTRY(
+ "fpga", 6, 1, do_fpga,
+ "fpga - loadable FPGA image support\n",
+ "fpga [operation type] [device number] [image address] [image size]\n"
+ "fpga operations:\n"
+ "\tinfo\tlist known device information.\n"
+ "\tload\tLoad device from memory buffer.\n"
+ "\tdump\tLoad device to memory buffer.\n"
+);
#endif /* CONFIG_FPGA && CONFIG_COMMANDS & CFG_CMD_FPGA */