From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chee, Tien Fong Date: Thu, 3 Jan 2019 05:33:42 +0000 Subject: [U-Boot] [PATCH 0/6] Add support for loading FPGA bitstream In-Reply-To: <0c0e78d8-15d3-8711-7b85-e9412c06da2c@denx.de> References: <1546157627-45489-1-git-send-email-tien.fong.chee@intel.com> <776ef5c8-42ed-dbdb-9578-d72e41df5cc9@denx.de> <1546311156.10462.3.camel@intel.com> <0c0e78d8-15d3-8711-7b85-e9412c06da2c@denx.de> Message-ID: <1546493622.10047.18.camel@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Tue, 2019-01-01 at 21:36 +0100, Marek Vasut wrote: > On 1/1/19 3:52 AM, Chee, Tien Fong wrote: > > > > On Sun, 2018-12-30 at 16:44 +0100, Marek Vasut wrote: > > > > > > On 12/30/18 9:13 AM, tien.fong.chee at intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > 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 > > > >    Reviewed-by: Simon Glass > > > > > > > > 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. > Happy New Year to you too. > > > > > 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. > I hope you can wrap this into V7 . Sure. >