]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: socfpga: fpga bridge driver support
authorAlan Tull <atull@opensource.altera.com>
Tue, 1 Nov 2016 19:14:30 +0000 (14:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 16:03:36 +0000 (17:03 +0100)
commit3b927752cfb42667988c3279b11490a8d58e55da
tree8be983f965df4d7f28d05285b8d8ee57041a8dee
parentd86c026e8a3421acdbe4dc6497a6b8d3c9519082
ARM: socfpga: fpga bridge driver support

Supports Altera SOCFPGA bridges:
 * fpga2sdram
 * fpga2hps
 * hps2fpga
 * lwhps2fpga

Allows enabling/disabling the bridges through the FPGA
Bridge Framework API functions.

The fpga2sdram driver only supports enabling and disabling
of the ports that been configured early on.  This is due to
a hardware limitation where the read, write, and command
ports on the fpga2sdram bridge can only be reconfigured
while there are no transactions to the sdram, i.e. when
running out of OCRAM before the kernel boots.

Device tree property 'init-val' configures the driver to
enable or disable the bridge during probe.  If the property
does not exist, the driver will leave the bridge in its
current state.

Signed-off-by: Alan Tull <atull@opensource.altera.com>
Signed-off-by: Matthew Gerlach <mgerlach@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/Kconfig
drivers/fpga/Makefile
drivers/fpga/altera-fpga2sdram.c [new file with mode: 0644]
drivers/fpga/altera-hps2fpga.c [new file with mode: 0644]