From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chee, Tien Fong Date: Fri, 29 Sep 2017 07:42:24 +0000 Subject: [U-Boot] [PATCH v2 04/19] arm: socfpga: Add Arria 10 SoCFPGA programming interface In-Reply-To: References: <1506328815-23733-1-git-send-email-tien.fong.chee@intel.com> <1506328815-23733-5-git-send-email-tien.fong.chee@intel.com> Message-ID: <1506670944.14357.0.camel@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Isn, 2017-09-25 at 11:03 +0200, Marek Vasut wrote: > On 09/25/2017 10:40 AM, tien.fong.chee at intel.com wrote: > > > > From: Tien Fong Chee > > > > 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 > > --- > [...] > > > > > +#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 ? > Okay. > > > > +} > > +#endif > [...] >