]> git.baikalelectronics.ru Git - uboot.git/commit
fpga: virtex2: Add slave serial programming support
authorRobert Hancock <hancock@sedsystems.ca>
Tue, 18 Jun 2019 15:47:16 +0000 (09:47 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 08:20:06 +0000 (10:20 +0200)
commit2e878b8c083c7eb8264fd98240e382331123f646
tree406e36d9a399cfe9ea3dd90ed2ed6575b1d9c3f9
parent21dfe50baed6f47bf60b11c37b208d87238debf1
fpga: virtex2: Add slave serial programming support

This adds support for slave serial programming, in addition to the
previously supported slave SelectMAP mode. There are two ways that this
can be used:

-Using the clk and wdata callbacks in order to write image data one bit
at a time using pure bit-banging. This works, but is rather painfully
slow with typical image sizes.

-By specifying the wbulkdata callback instead, the image loading process
can be offloaded to SPI hardware. In this mode the clk and wdata
callbacks do not need to be specified. This allows the image to be
loaded much faster, taking only a few seconds with even relatively large
images.

Slave serial programming has been tested on the Kintex-7 series of
FPGAs.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/fpga/virtex2.c
include/virtex2.h