diff mbox series

[U-Boot,2/5] fpga: virtex2: added Kconfig option

Message ID 1560872836-21456-3-git-send-email-hancock@sedsystems.ca
State Accepted
Commit 25d63a367794d4c559d910a19566b7b15296c7a1
Delegated to: Michal Simek
Headers show
Series Virtex2 FPGA enhancements | expand

Commit Message

Robert Hancock June 18, 2019, 3:47 p.m. UTC
Add an option to allow this driver to be selected with Kconfig. As noted
in the description, this driver should also work with many newer Xilinx
FPGA families as the programming methods are essentially the same.

Also added a missing FPGA_XILINX dependency to the similar Spartan 3
driver.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
---
 drivers/fpga/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index 8f59193..105a299 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -58,9 +58,17 @@  config FPGA_ZYNQMPPL
 
 config FPGA_SPARTAN3
 	bool "Enable Spartan3 FPGA driver"
+	depends on FPGA_XILINX
 	help
 	  Enable Spartan3 FPGA driver for loading in BIT format.
 
+config FPGA_VIRTEX2
+	bool "Enable Xilinx Virtex-II and later FPGA driver"
+	depends on FPGA_XILINX
+	help
+	  Enable Virtex-II FPGA driver for loading in BIT format. This driver
+	  also supports many newer Xilinx FPGA families.
+
 config FPGA_ZYNQPL
 	bool "Enable Xilinx FPGA for Zynq"
 	depends on ARCH_ZYNQ