diff mbox series

Kconfig/fpga_zynq: Depend on FPGA

Message ID 20200123082612.22626-1-oliver@schinagl.nl
State New
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 at schinagl.nl>
---
 drivers/fpga/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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
 config FPGA_ZYNQPL
 	bool "Enable Xilinx FPGA for Zynq"
 	depends on ARCH_ZYNQ
+	select FPGA
 	help
 	  Enable FPGA driver for loading bitstream in BIT and BIN format
 	  on Xilinx Zynq devices.