aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2016-11-21 17:26:42 -0500
committerAlan Tull <atull@opensource.altera.com>2016-11-29 16:51:44 -0500
commita0e1b618585979bf2520a6a6e954a3bb56cd610b (patch)
tree326bf7900f781ae08ce671a82e3dce82188f5e15
parente663c5dbad2999aa824045c8e01fed459d1fc833 (diff)
fpga: Add COMPILE_TEST to all drivers
Like Zynq the Altera drivers compile fine on x86 and others too, so make it easier to compile test this stuff. A10 requires REGMAP_MMIO to compile, so be explicit rather than relying on it via ARCH_SOCFPGA. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Acked-by: Alan Tull <atull@opensource.altera.com>
-rw-r--r--drivers/fpga/Kconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index 889e4c398304..ce861a2853a4 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -22,13 +22,14 @@ config FPGA_REGION
22 22
23config FPGA_MGR_SOCFPGA 23config FPGA_MGR_SOCFPGA
24 tristate "Altera SOCFPGA FPGA Manager" 24 tristate "Altera SOCFPGA FPGA Manager"
25 depends on ARCH_SOCFPGA 25 depends on ARCH_SOCFPGA || COMPILE_TEST
26 help 26 help
27 FPGA manager driver support for Altera SOCFPGA. 27 FPGA manager driver support for Altera SOCFPGA.
28 28
29config FPGA_MGR_SOCFPGA_A10 29config FPGA_MGR_SOCFPGA_A10
30 tristate "Altera SoCFPGA Arria10" 30 tristate "Altera SoCFPGA Arria10"
31 depends on ARCH_SOCFPGA 31 depends on ARCH_SOCFPGA || COMPILE_TEST
32 select REGMAP_MMIO
32 help 33 help
33 FPGA manager driver support for Altera Arria10 SoCFPGA. 34 FPGA manager driver support for Altera Arria10 SoCFPGA.
34 35