]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fpga: Add COMPILE_TEST to all drivers
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Mon, 21 Nov 2016 22:26:42 +0000 (22:26 +0000)
committerAlan Tull <atull@opensource.altera.com>
Tue, 29 Nov 2016 21:51:44 +0000 (15:51 -0600)
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>
drivers/fpga/Kconfig

index 889e4c39830421a2181f9d15b4ec9890ad96f79f..ce861a2853a4bffbdf4d84f2775bfacdf8430522 100644 (file)
@@ -22,13 +22,14 @@ config FPGA_REGION
 
 config FPGA_MGR_SOCFPGA
        tristate "Altera SOCFPGA FPGA Manager"
-       depends on ARCH_SOCFPGA
+       depends on ARCH_SOCFPGA || COMPILE_TEST
        help
          FPGA manager driver support for Altera SOCFPGA.
 
 config FPGA_MGR_SOCFPGA_A10
        tristate "Altera SoCFPGA Arria10"
-       depends on ARCH_SOCFPGA
+       depends on ARCH_SOCFPGA || COMPILE_TEST
+       select REGMAP_MMIO
        help
          FPGA manager driver support for Altera Arria10 SoCFPGA.