162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the Qualcomm IPA driver.
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciIPA_REG_VERSIONS	:=	3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci# Some IPA versions can reuse another set of GSI register definitions.
862306a36Sopenharmony_ciGSI_REG_VERSIONS	:=	3.1 3.5.1 4.0 4.5 4.9 4.11 5.0
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciIPA_DATA_VERSIONS	:=	3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciobj-$(CONFIG_QCOM_IPA)	+=	ipa.o
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciipa-y			:=	ipa_main.o ipa_power.o ipa_reg.o ipa_mem.o \
1562306a36Sopenharmony_ci				ipa_table.o ipa_interrupt.o gsi.o gsi_reg.o \
1662306a36Sopenharmony_ci				gsi_trans.o ipa_gsi.o ipa_smp2p.o ipa_uc.o \
1762306a36Sopenharmony_ci				ipa_endpoint.o ipa_cmd.o ipa_modem.o \
1862306a36Sopenharmony_ci				ipa_resource.o ipa_qmi.o ipa_qmi_msg.o \
1962306a36Sopenharmony_ci				ipa_sysfs.o
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciipa-y			+=	$(IPA_REG_VERSIONS:%=reg/ipa_reg-v%.o)
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciipa-y			+=	$(GSI_REG_VERSIONS:%=reg/gsi_reg-v%.o)
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciipa-y			+=	$(IPA_DATA_VERSIONS:%=data/ipa_data-v%.o)
26