summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/Makefile
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-09-26 17:09:19 -0500
committerJakub Kicinski <kuba@kernel.org>2022-09-27 18:42:49 -0700
commit07f120bcf76b6f0969a1bc18ce5b7a16555fadad (patch)
treea001b0ef812c6f25b8bb4a5c13ae31c0c988b18c /drivers/net/ipa/Makefile
parent6bfb753850d3bad78fc2eb6f4e0fa5675055ad97 (diff)
downloadlinux-stable-07f120bcf76b6f0969a1bc18ce5b7a16555fadad.tar.gz
linux-stable-07f120bcf76b6f0969a1bc18ce5b7a16555fadad.tar.bz2
linux-stable-07f120bcf76b6f0969a1bc18ce5b7a16555fadad.zip
net: ipa: add per-version IPA register definition files
Create a new subdirectory "reg", which contains a register definition file for each supported version of IPA. Each register definition contains the register's offset, and for parameterized registers, the stride (distance between consecutive instances of the register). Finally, it includes an all-caps printable register name. In these files, each IPA version defines an array of IPA register definition pointers, with unsupported registers defined with a null pointer. The array is indexed by the ipa_reg_id enumerated type. At initialization time, the appropriate register definition array to use is selected based on the IPA version, and assigned to a new "regs" field in the IPA structure. Extend ipa_reg_valid() so it fails if a valid register is not defined. This patch simply puts this infrastructure in place; the next will use it. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/Makefile')
-rw-r--r--drivers/net/ipa/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ipa/Makefile b/drivers/net/ipa/Makefile
index 8b2220eb6b92..48255fc4b25c 100644
--- a/drivers/net/ipa/Makefile
+++ b/drivers/net/ipa/Makefile
@@ -13,4 +13,6 @@ ipa-y := ipa_main.o ipa_power.o ipa_reg.o ipa_mem.o \
ipa_resource.o ipa_qmi.o ipa_qmi_msg.o \
ipa_sysfs.o
+ipa-y += $(IPA_VERSIONS:%=reg/ipa_reg-v%.o)
+
ipa-y += $(IPA_VERSIONS:%=data/ipa_data-v%.o)