mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
fpga: fpga-region: device tree control for FPGA
FPGA Regions support programming FPGA under control of the Device Tree. Signed-off-by: Alan Tull <atull@opensource.altera.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
21aeda950c
commit
0fa20cdfcc
@@ -13,6 +13,13 @@ config FPGA
|
||||
|
||||
if FPGA
|
||||
|
||||
config FPGA_REGION
|
||||
tristate "FPGA Region"
|
||||
depends on OF && FPGA_BRIDGE
|
||||
help
|
||||
FPGA Regions allow loading FPGA images under control of
|
||||
the Device Tree.
|
||||
|
||||
config FPGA_MGR_SOCFPGA
|
||||
tristate "Altera SOCFPGA FPGA Manager"
|
||||
depends on ARCH_SOCFPGA
|
||||
|
||||
@@ -11,3 +11,6 @@ obj-$(CONFIG_FPGA_MGR_ZYNQ_FPGA) += zynq-fpga.o
|
||||
|
||||
# FPGA Bridge Drivers
|
||||
obj-$(CONFIG_FPGA_BRIDGE) += fpga-bridge.o
|
||||
|
||||
# High Level Interfaces
|
||||
obj-$(CONFIG_FPGA_REGION) += fpga-region.o
|
||||
|
||||
603
drivers/fpga/fpga-region.c
Normal file
603
drivers/fpga/fpga-region.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -65,8 +65,10 @@ enum fpga_mgr_states {
|
||||
/*
|
||||
* FPGA Manager flags
|
||||
* FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported
|
||||
* FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting
|
||||
*/
|
||||
#define FPGA_MGR_PARTIAL_RECONFIG BIT(0)
|
||||
#define FPGA_MGR_EXTERNAL_CONFIG BIT(1)
|
||||
|
||||
/**
|
||||
* struct fpga_image_info - information specific to a FPGA image
|
||||
|
||||
Reference in New Issue
Block a user