]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: microchip: support writing bitstream info to flash
authorConor Dooley <conor.dooley@microchip.com>
Wed, 10 Apr 2024 11:58:04 +0000 (12:58 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 5 Jun 2024 18:35:21 +0000 (19:35 +0100)
commita2bf9dfe00905c2426893229b593487fe5abf152
tree11a56421531b5f3d45ef75d5659c8361ff15e973
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
firmware: microchip: support writing bitstream info to flash

Updating the FPGA image might bring with it changes visible to Linux,
so it is helpful to also co-locate dt-overlays that describe the new
image contents. If these are packaged in a specific format [1] (detected
by first 4 bytes being MCHP, since FPGA images have no magic), load
the file to the reserved 1 MiB region immediately after the directory in
flash. The Beagle-V Fire's "gateware" already creates these files and
puts them in flash [2].

Link: https://github.com/polarfire-soc/polarfire-soc-documentation/blob/master/how-to/re-programming-the-fpga-from-linux.md#main-header-format
Link: https://openbeagle.org/beaglev-fire/gateware/-/blob/main/gateware_scripts/generate_gateware_overlays.py?ref_type=heads
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/firmware/microchip/mpfs-auto-update.c