On 09/25/2017 10:40 AM, tien.fong.c...@intel.com wrote:
> From: Tien Fong Chee <tien.fong.c...@intel.com>
> 
> Add code necessary into the FPGA driver framework in U-Boot
> so it can be used via the 'fpga' command for programing Arria 10
> SoCFPGA.
> 
> Signed-off-by: Tien Fong Chee <tien.fong.c...@intel.com>
> ---

[...]

> +#if defined(CONFIG_CMD_FPGA_LOADFS)
> +int altera_loadfs(Altera_desc *desc, const void *buf, size_t bsize,
> +                fpga_fs_info *fpga_fsinfo)
> +{
> +     const struct altera_fpga *fpga = altera_desc_to_fpga(desc, __func__);
> +
> +     if (!fpga)
> +             return FPGA_FAIL;
> +
> +     debug_cond(FPGA_DEBUG, "%s: Launching the %s FS Loader...\n",
> +                __func__, fpga->name);
> +     if (fpga->loadfs)
> +             return fpga->loadfs(desc, buf, bsize, fpga_fsinfo);
> +     return 0;

return -EINVAL , since the loader could not be started ?

> +}
> +#endif
[...]

-- 
Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to