162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the fpga framework and fpga manager drivers.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci# Core FPGA Manager Framework
762306a36Sopenharmony_ciobj-$(CONFIG_FPGA)			+= fpga-mgr.o
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci# FPGA Manager Drivers
1062306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_ALTERA_CVP)	+= altera-cvp.o
1162306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_ALTERA_PS_SPI)	+= altera-ps-spi.o
1262306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_ICE40_SPI)	+= ice40-spi.o
1362306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_MACHXO2_SPI)	+= machxo2-spi.o
1462306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_SOCFPGA)		+= socfpga.o
1562306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_SOCFPGA_A10)	+= socfpga-a10.o
1662306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_STRATIX10_SOC)	+= stratix10-soc.o
1762306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_TS73XX)		+= ts73xx-fpga.o
1862306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_XILINX_SPI)	+= xilinx-spi.o
1962306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_ZYNQ_FPGA)	+= zynq-fpga.o
2062306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_ZYNQMP_FPGA)	+= zynqmp-fpga.o
2162306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_VERSAL_FPGA)	+= versal-fpga.o
2262306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_MICROCHIP_SPI)	+= microchip-spi.o
2362306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_LATTICE_SYSCONFIG)	+= lattice-sysconfig.o
2462306a36Sopenharmony_ciobj-$(CONFIG_FPGA_MGR_LATTICE_SYSCONFIG_SPI)	+= lattice-sysconfig-spi.o
2562306a36Sopenharmony_ciobj-$(CONFIG_ALTERA_PR_IP_CORE)		+= altera-pr-ip-core.o
2662306a36Sopenharmony_ciobj-$(CONFIG_ALTERA_PR_IP_CORE_PLAT)	+= altera-pr-ip-core-plat.o
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci# FPGA Secure Update Drivers
2962306a36Sopenharmony_ciobj-$(CONFIG_FPGA_M10_BMC_SEC_UPDATE)	+= intel-m10-bmc-sec-update.o
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci# FPGA Bridge Drivers
3262306a36Sopenharmony_ciobj-$(CONFIG_FPGA_BRIDGE)		+= fpga-bridge.o
3362306a36Sopenharmony_ciobj-$(CONFIG_SOCFPGA_FPGA_BRIDGE)	+= altera-hps2fpga.o altera-fpga2sdram.o
3462306a36Sopenharmony_ciobj-$(CONFIG_ALTERA_FREEZE_BRIDGE)	+= altera-freeze-bridge.o
3562306a36Sopenharmony_ciobj-$(CONFIG_XILINX_PR_DECOUPLER)	+= xilinx-pr-decoupler.o
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci# High Level Interfaces
3862306a36Sopenharmony_ciobj-$(CONFIG_FPGA_REGION)		+= fpga-region.o
3962306a36Sopenharmony_ciobj-$(CONFIG_OF_FPGA_REGION)		+= of-fpga-region.o
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci# FPGA Device Feature List Support
4262306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL)			+= dfl.o
4362306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_FME)		+= dfl-fme.o
4462306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_FME_MGR)		+= dfl-fme-mgr.o
4562306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_FME_BRIDGE)	+= dfl-fme-br.o
4662306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_FME_REGION)	+= dfl-fme-region.o
4762306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_AFU)		+= dfl-afu.o
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_cidfl-fme-objs := dfl-fme-main.o dfl-fme-pr.o dfl-fme-error.o
5062306a36Sopenharmony_cidfl-fme-objs += dfl-fme-perf.o
5162306a36Sopenharmony_cidfl-afu-objs := dfl-afu-main.o dfl-afu-region.o dfl-afu-dma-region.o
5262306a36Sopenharmony_cidfl-afu-objs += dfl-afu-error.o
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_NIOS_INTEL_PAC_N3000)	+= dfl-n3000-nios.o
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci# Drivers for FPGAs which implement DFL
5762306a36Sopenharmony_ciobj-$(CONFIG_FPGA_DFL_PCI)		+= dfl-pci.o
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci# KUnit tests
6062306a36Sopenharmony_ciobj-$(CONFIG_FPGA_KUNIT_TESTS)		+= tests/
61