Commit ed4c7d61 authored by Alex Elder's avatar Alex Elder Committed by Jakub Kicinski

net: ipa: add IPA v5.0 register definitions

Add the definitions of IPA register offsets and fields for IPA v5.0.
These are used for the SDX65 SoC.

In the Makefile, split IPA_VERSIONS to use IPA_REG_VERSIONS and
IPA_DATA_VERSIONS instead, to allow IPA register definitions for a
new version to be added separate from the IPA data.

Rename GSI_IPA_VERSIONS to be GSI_REG_VERSIONS for consistency.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6e4a93be
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
# #
# Makefile for the Qualcomm IPA driver. # Makefile for the Qualcomm IPA driver.
IPA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 IPA_REG_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0
# Some IPA versions can reuse another set of GSI register definitions. # Some IPA versions can reuse another set of GSI register definitions.
GSI_IPA_VERSIONS := 3.1 3.5.1 4.0 4.5 4.9 4.11 GSI_REG_VERSIONS := 3.1 3.5.1 4.0 4.5 4.9 4.11
IPA_DATA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11
obj-$(CONFIG_QCOM_IPA) += ipa.o obj-$(CONFIG_QCOM_IPA) += ipa.o
...@@ -16,8 +18,8 @@ ipa-y := ipa_main.o ipa_power.o ipa_reg.o ipa_mem.o \ ...@@ -16,8 +18,8 @@ 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_resource.o ipa_qmi.o ipa_qmi_msg.o \
ipa_sysfs.o ipa_sysfs.o
ipa-y += $(GSI_IPA_VERSIONS:%=reg/gsi_reg-v%.o) ipa-y += $(IPA_REG_VERSIONS:%=reg/ipa_reg-v%.o)
ipa-y += $(IPA_VERSIONS:%=reg/ipa_reg-v%.o) ipa-y += $(GSI_REG_VERSIONS:%=reg/gsi_reg-v%.o)
ipa-y += $(IPA_VERSIONS:%=data/ipa_data-v%.o) ipa-y += $(IPA_DATA_VERSIONS:%=data/ipa_data-v%.o)
...@@ -123,6 +123,8 @@ static const struct regs *ipa_regs(enum ipa_version version) ...@@ -123,6 +123,8 @@ static const struct regs *ipa_regs(enum ipa_version version)
return &ipa_regs_v4_9; return &ipa_regs_v4_9;
case IPA_VERSION_4_11: case IPA_VERSION_4_11:
return &ipa_regs_v4_11; return &ipa_regs_v4_11;
case IPA_VERSION_5_0:
return &ipa_regs_v5_0;
default: default:
return NULL; return NULL;
} }
......
...@@ -636,6 +636,7 @@ extern const struct regs ipa_regs_v4_5; ...@@ -636,6 +636,7 @@ extern const struct regs ipa_regs_v4_5;
extern const struct regs ipa_regs_v4_7; extern const struct regs ipa_regs_v4_7;
extern const struct regs ipa_regs_v4_9; extern const struct regs ipa_regs_v4_9;
extern const struct regs ipa_regs_v4_11; extern const struct regs ipa_regs_v4_11;
extern const struct regs ipa_regs_v5_0;
const struct reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id); const struct reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment