[PATCH 3/4] mtd/fpga: add fpga directory to mtd (with Cyclone 10)
Marek Vasut
marex at denx.de
Sun Feb 12 20:31:47 CET 2023
On 2/11/23 11:07, u-boot at emagii.com wrote:
[...]
> +static int cyc10_write(struct mtd_info *mtd, loff_t to, size_t len,
> + size_t *retlen, const u_char *buf)
> +{
> + struct udevice *dev = mtd->dev;
> + struct spi_slave *slave = dev_get_parent_priv(dev);
> + struct cyc10_plat *fpga = dev_get_plat(dev);
> + int ret;
Do I read this right, that the 'write' callback is the only one doing
meaningful work, all the other callbacks are just empty stubs ?
Why not update drivers/fpga/cyclon2.c which is Passive Serial
implementation already present in U-Boot for Altera Cyclone II FPGA ,
with Cyclone 10 FPGA support ? I believe the PS protocol changed very
little.
[...]
More information about the U-Boot
mailing list