diff mbox series

Kconfig/fpga_zynq: Depend on FPGA

Message ID 20200123082612.22626-1-oliver@schinagl.nl
State New
Delegated to: Michal Simek
Headers show
Series Kconfig/fpga_zynq: Depend on FPGA | expand

Commit Message

Olliver Schinagl Jan. 23, 2020, 8:26 a.m. UTC
The zynq FPGA bits require the main FPGA bits to be enabled as we
otherwise get the following compiler error:

arch/arm/mach-zynq/cpu.c: In function 'arch_early_init_r':
arch/arm/mach-zynq/cpu.c:118:37: error: 'const struct <anonymous>' has no member named 'fpga_size'
  fpga.size = zynq_fpga_descs[cpu_id].fpga_size;

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
 drivers/fpga/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index fe398a1d49..1d2df617d0 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -81,6 +81,7 @@  config FPGA_VIRTEX2
 	bool "Enable Xilinx FPGA for Zynq"
 	depends on ARCH_ZYNQ
+	select FPGA
 	  Enable FPGA driver for loading bitstream in BIT and BIN format
 	  on Xilinx Zynq devices.