# SPDX-License-Identifier: GPL-2.0
#
# Makefile for the Horizon J6 PCIe driver
#

obj-$(CONFIG_PCIE_HOBOT) += hobot-pcie-common.o

hobot-pcie-common-objs += hobot-misc.o
hobot-pcie-common-objs += hobot-memory.o
hobot-pcie-common-objs += hobot-memblock.o
ifeq ($(CONFIG_PCIE_J5_EMULATE),y)
	hobot-pcie-common-objs += hobot-edma-j5.o
	hobot-pcie-common-objs += hobot-iommu-j5.o
else
	hobot-pcie-common-objs += hobot-edma.o
	hobot-pcie-common-objs += hobot-iommu.o
endif
