mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
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>
This commit is contained in:
@@ -187,6 +187,15 @@ int fpga_add(fpga_type devtype, void *desc)
|
||||
return devnum;
|
||||
}
|
||||
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user