Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jason Gunthorpe and committed by
Alan Tull
a0e1b618 e663c5db

+3 -2
+3 -2
drivers/fpga/Kconfig
··· 22 22 23 23 config FPGA_MGR_SOCFPGA 24 24 tristate "Altera SOCFPGA FPGA Manager" 25 - depends on ARCH_SOCFPGA 25 + depends on ARCH_SOCFPGA || COMPILE_TEST 26 26 help 27 27 FPGA manager driver support for Altera SOCFPGA. 28 28 29 29 config FPGA_MGR_SOCFPGA_A10 30 30 tristate "Altera SoCFPGA Arria10" 31 - depends on ARCH_SOCFPGA 31 + depends on ARCH_SOCFPGA || COMPILE_TEST 32 + select REGMAP_MMIO 32 33 help 33 34 FPGA manager driver support for Altera Arria10 SoCFPGA. 34 35