diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-04-26 13:12:07 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-05-06 10:41:19 +0200 |
commit | 52c2064476a2a44a9a872c6f1d69f4444cb49cbd (patch) | |
tree | d46789e4393669ceecfff25ba98f426cdabd7fee /drivers/fpga/fpga.c | |
parent | fc598412ced94e01d4bbe8769b2a114ff6ac6f2a (diff) | |
download | u-boot-imx-52c2064476a2a44a9a872c6f1d69f4444cb49cbd.zip u-boot-imx-52c2064476a2a44a9a872c6f1d69f4444cb49cbd.tar.gz u-boot-imx-52c2064476a2a44a9a872c6f1d69f4444cb49cbd.tar.bz2 |
cmd: fpga: Move fpga_loadbitstream to fpga.c
In bitstream decoding you can directly check device
which you want to load and in fpga.c are fpga_validate
and fpga_dev_info functions which should be used for it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/fpga/fpga.c')
-rw-r--r-- | drivers/fpga/fpga.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/fpga/fpga.c b/drivers/fpga/fpga.c index 43bdf4f..f0253bf 100644 --- a/drivers/fpga/fpga.c +++ b/drivers/fpga/fpga.c @@ -188,6 +188,15 @@ int fpga_add(fpga_type devtype, void *desc) } /* + * Convert bitstream data and load into the fpga + */ +int __weak fpga_loadbitstream(unsigned long dev, char *fpgadata, size_t size) +{ + printf("Bitstream support not implemented for this FPGA device\n"); + return FPGA_FAIL; +} + +/* * Generic multiplexing code */ int fpga_load(int devnum, const void *buf, size_t bsize) |