[PATCH 3/4] mtd/fpga: add fpga directory to mtd (with Cyclone 10)

Michael Walle michael at walle.cc
Tue Feb 21 10:08:16 CET 2023


>> If it is right or wrong to use that as an MTD is a matter of opinion.
> 
> I am still hoping the MTD maintainer would provide input here.

I might be missing something, but what is the reasoning here, to add this
to the mtd subsystem? One is saving space, but I agree with Marek, this
isn't a valid argument to just put any (unrelated) stuff into the MTD
subsystem.

Also, as Marek pointed out, there are many different 'programming'
solutions for CPLDs/FPGAs and most of them don't share anything with
MTD. You seem to be just focusing on the "passive serial" one.

Now, I saw you mentioned that

 | the current passive serial solutions does not use the existing SPI
 | drivers.

What do you mean with SPI drivers? SPI flash drivers or SPI controller
drivers? Does the "passive serial solution" expose an SPI bus and you
can access the SPI flash on it in a generic way? Then the solution
should be to write a SPI (controller) driver, the flash should then
be automatically be detected.

-michael


More information about the U-Boot mailing list