summaryrefslogtreecommitdiff
path: root/board/siemens/common
diff options
context:
space:
mode:
Diffstat (limited to 'board/siemens/common')
-rw-r--r--board/siemens/common/fpga.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/board/siemens/common/fpga.c b/board/siemens/common/fpga.c
index a17de5ad653..7edeb0a8b05 100644
--- a/board/siemens/common/fpga.c
+++ b/board/siemens/common/fpga.c
@@ -26,8 +26,6 @@
#include <command.h>
#include <linux/ctype.h>
#include <common.h>
-#include <cmd_boot.h>
-#include <cmd_bsp.h>
#include "fpga.h"
@@ -146,7 +144,7 @@ static int fpga_load (fpga_t* fpga, ulong addr, int checkall)
if (hdr.ih_magic != IH_MAGIC) {
strcpy (msg, "Bad Image Magic Number");
- goto failure;
+ goto failure;
}
len = sizeof(image_header_t);
@@ -293,6 +291,14 @@ int do_fpga (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
+cmd_tbl_t U_BOOT_CMD(fpga) = MK_CMD_ENTRY(
+ "fpga", 4, 1, do_fpga,
+ "fpga - access FPGA(s)\n",
+ "fpga status [name] - print FPGA status\n"
+ "fpga reset [name] - reset FPGA\n"
+ "fpga load [name] addr - load FPGA configuration data\n"
+);
+
#endif /* CONFIG_COMMANDS & CFG_CMD_BSP */
/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */