Skip to content

Add support for loading FPGA bitstream

Chee u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10+0 -01 reply
1/6ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10+0 -09 replies
2/6ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading+0 -01 reply
2/6ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading+0 -00 replies
3/6ARM: socfpga: Add the configuration for FPGA SoCFPGA A10 SoCDK+0 -06 replies
5/6spl : socfpga: Implement fpga bitstream loading with socfpga loadfs+0 -01 reply
5/6spl : socfpga: Implement fpga bitstream loading with socfpga loadfs+0 -00 replies
6/6ARM: socfpga: Synchronize the configuration for A10 SoCDK+0 -01 reply
6/6ARM: socfpga: Synchronize the configuration for A10 SoCDK+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/6] Add support for loading FPGA bitstream
Quoted 68 lines · Marek Vasut
Quoted 67 lines · tien.fong.chee at intel.com

From: Tien Fong Chee <[email protected]>

These series of patches enable peripheral bitstream being programmed into FPGA
to get the DDR up running. This's also called early IO release, because the
peripheral bitstream is only initializing FPGA IOs, PLL, IO48 and DDR.

Once DDR is up running, core bitstream from MMC which contains user FPGA
design would be loaded into DDR location. socfpga loadfs would be called to
program core bitstream into FPGA and entering user mode.

Lastly, u-boot-dtb.img from MMC FAT partition would be loaded to DDR, and up
running from there.

For this whole mechanism to work, the SDMMC flash layout would be designed as
shown in below:

RAW partition:
1. spl_w_dtb-mkpimage.bin
mkpimage -hv 1 -o spl/spl_w_dtb-mkpimage.bin spl/u-boot-spl-dtb.bin spl/u-boot-spl-dtb.bin spl/u-boot-spl-dtb.bin spl/u-boot-spl- dtb.bin

FAT partition contains:
Bitstreams
----------
Early IO release method is recommended for the sake of performance, improve
up to 86% compare to full RBF.

1. ghrd_10as066n2.periph.rbf.mkimage
mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n \"RBF\" -d
 ghrd_10as066n2.periph.rbf ghrd_10as066n2.periph.rbf.mkimage

2. ghrd_10as066n2.core.rbf.mkimage
mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n \"RBF\" -d
 ghrd_10as066n2.core.rbf ghrd_10as066n2.core.rbf.mkimage

OR

1. ghrd_10as066n2.rbf.mkimage (full RBF)
mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n \"RBF\" -d
 ghrd_10as066n2.rbf ghrd_10as066n2.rbf.mkimage

U-Boot image
------------
3. u-boot-dtb.img

For the testing purpose, these two patches are required to apply 1st before
applying this series of patches.
1. [U-Boot] [PATCH] misc: fs_loader: Switching private data allocation to DM
   auto allocation
   https://www.mail-archive.com/u-boot at lists.denx.de/msg308954.html

Quoted 5 lines
Quoted 3 lines

2. [U-Boot] [PATCH v2] Add support for initializing MMC
   https://www.mail-archive.com/u-boot at lists.denx.de/msg310532.html Version 2 under review.

The above should be made into documentation, since cover letters are dropped.

Happy new year Marek.

Yeah, the document would be sent out once the implementation is finalized. Hence, we need your mercy and help to get this done :-P, just kidding.

Quoted 1 line