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

Ulf Samuelsson u-boot at emagii.com
Tue Feb 21 11:58:17 CET 2023


Hi Guys,
We are currently discussing how to support passive serial configuration 
of FPGAs in u-boot.

Checking the u-boot source code reveals that only your boards
actually supports this.

board/beckhoff/mx53cx9020/mx53cx9020.c:...Altera_CYC2_Passive_Serial ...
$ scripts/get_maintainer.pl board/beckhoff/mx53cx9020/mx53cx9020.c
Patrick Bruenn <p.bruenn at beckhoff.com> (maintainer:MX53 CX9020)

board/astro/mcf5373l/fpga.c:Altera_CYC2_Passive_Serial ...
$ scripts/get_maintainer.pl board/astro/mcf5373l/fpga.c
Wolfgang Wegner <w.wegner at astro-kom.de> (maintainer:MCF5373L BOARD)

The proposed ideas is to have the FPGA as an SPI peripheral
in the device tree.

I have a working version, where the FPGA is an MTD device
and the general idea is to add it to the FPGA manager,
which unfortunately needs a major rewrite to support device tree.

Your board support configuring the FPGA in the 'board' files.


* Are these boards still active and will require updates of u-boot?

* If so, would it be a problem porting the FPGA configuration to the 
device tree?

Marek does not want two drivers supporting passive serial,
and supporting both 'board' drivers and devicetree drivers
seems to result in unclean code.

Best Regards
Ulf Samuelsson


More information about the U-Boot mailing list