xref: /linux/drivers/fpga/Makefile (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the fpga framework and fpga manager drivers.
4#
5
6# Core FPGA Manager Framework
7obj-$(CONFIG_FPGA)			+= fpga-mgr.o
8
9# FPGA Manager Drivers
10obj-$(CONFIG_FPGA_MGR_ALTERA_CVP)	+= altera-cvp.o
11obj-$(CONFIG_FPGA_MGR_ALTERA_PS_SPI)	+= altera-ps-spi.o
12obj-$(CONFIG_FPGA_MGR_ICE40_SPI)	+= ice40-spi.o
13obj-$(CONFIG_FPGA_MGR_MACHXO2_SPI)	+= machxo2-spi.o
14obj-$(CONFIG_FPGA_MGR_SOCFPGA)		+= socfpga.o
15obj-$(CONFIG_FPGA_MGR_SOCFPGA_A10)	+= socfpga-a10.o
16obj-$(CONFIG_FPGA_MGR_STRATIX10_SOC)	+= stratix10-soc.o
17obj-$(CONFIG_FPGA_MGR_TS73XX)		+= ts73xx-fpga.o
18obj-$(CONFIG_FPGA_MGR_XILINX_CORE)	+= xilinx-core.o
19obj-$(CONFIG_FPGA_MGR_XILINX_SELECTMAP)	+= xilinx-selectmap.o
20obj-$(CONFIG_FPGA_MGR_XILINX_SPI)	+= xilinx-spi.o
21obj-$(CONFIG_FPGA_MGR_ZYNQ_FPGA)	+= zynq-fpga.o
22obj-$(CONFIG_FPGA_MGR_ZYNQMP_FPGA)	+= zynqmp-fpga.o
23obj-$(CONFIG_FPGA_MGR_VERSAL_FPGA)	+= versal-fpga.o
24obj-$(CONFIG_FPGA_MGR_MICROCHIP_SPI)	+= microchip-spi.o
25obj-$(CONFIG_FPGA_MGR_LATTICE_SYSCONFIG)	+= lattice-sysconfig.o
26obj-$(CONFIG_FPGA_MGR_LATTICE_SYSCONFIG_SPI)	+= lattice-sysconfig-spi.o
27obj-$(CONFIG_ALTERA_PR_IP_CORE)		+= altera-pr-ip-core.o
28obj-$(CONFIG_ALTERA_PR_IP_CORE_PLAT)	+= altera-pr-ip-core-plat.o
29
30# FPGA Secure Update Drivers
31obj-$(CONFIG_FPGA_M10_BMC_SEC_UPDATE)	+= intel-m10-bmc-sec-update.o
32
33# FPGA Bridge Drivers
34obj-$(CONFIG_FPGA_BRIDGE)		+= fpga-bridge.o
35obj-$(CONFIG_SOCFPGA_FPGA_BRIDGE)	+= altera-hps2fpga.o altera-fpga2sdram.o
36obj-$(CONFIG_ALTERA_FREEZE_BRIDGE)	+= altera-freeze-bridge.o
37obj-$(CONFIG_XILINX_PR_DECOUPLER)	+= xilinx-pr-decoupler.o
38
39# High Level Interfaces
40obj-$(CONFIG_FPGA_REGION)		+= fpga-region.o
41obj-$(CONFIG_OF_FPGA_REGION)		+= of-fpga-region.o
42
43# FPGA Device Feature List Support
44obj-$(CONFIG_FPGA_DFL)			+= dfl.o
45obj-$(CONFIG_FPGA_DFL_FME)		+= dfl-fme.o
46obj-$(CONFIG_FPGA_DFL_FME_MGR)		+= dfl-fme-mgr.o
47obj-$(CONFIG_FPGA_DFL_FME_BRIDGE)	+= dfl-fme-br.o
48obj-$(CONFIG_FPGA_DFL_FME_REGION)	+= dfl-fme-region.o
49obj-$(CONFIG_FPGA_DFL_AFU)		+= dfl-afu.o
50
51dfl-fme-objs := dfl-fme-main.o dfl-fme-pr.o dfl-fme-error.o
52dfl-fme-objs += dfl-fme-perf.o
53dfl-afu-objs := dfl-afu-main.o dfl-afu-region.o dfl-afu-dma-region.o
54dfl-afu-objs += dfl-afu-error.o
55
56obj-$(CONFIG_FPGA_DFL_NIOS_INTEL_PAC_N3000)	+= dfl-n3000-nios.o
57
58# Drivers for FPGAs which implement DFL
59obj-$(CONFIG_FPGA_DFL_PCI)		+= dfl-pci.o
60
61# KUnit tests
62obj-$(CONFIG_FPGA_KUNIT_TESTS)		+= tests/
63