[U-Boot] [PATCH v2 4/7] cmd: fpga: Move fpga_loadbitstream to fpga.c

Tom Rini trini at ti.com
Wed May 1 17:03:19 CEST 2013


On Wed, May 01, 2013 at 10:59:20AM +0200, Michal Simek wrote:

> 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 at xilinx.com>
[snip]
> +++ b/drivers/fpga/fpga.c
[snip]
> +#else
> +	printf("Bitstream support only for Xilinx devices\n");
> +	return FPGA_FAIL;
> +#endif

How about we re-work this as a __weak fpga_loadbitstream in
drivers/fpga/fpga.c that just says "Bitstream support not implemented
for this FPGA device", return FPGA_FAIL, and move the xilinx one into
drivers/fpga/xilinx.c ?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130501/07279156/attachment.pgp>


More information about the U-Boot mailing list