mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
net: ipa: add IPA v5.5 register definitions
GSI register definitions for IPA v5.5 are the same as those used for IPA v5.0. Update ipa_reg_id_valid() to reflect that IPA v5.0+ supports source and destination resource groups 4 through 7. Add the definitions of IPA register offsets and fields for IPA v5.5. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b00e190cc2
commit
1bfeafabcd
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Makefile for the Qualcomm IPA driver.
|
||||
|
||||
IPA_REG_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0
|
||||
IPA_REG_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0 5.5
|
||||
|
||||
# Some IPA versions can reuse another set of GSI register definitions.
|
||||
GSI_REG_VERSIONS := 3.1 3.5.1 4.0 4.5 4.9 4.11 5.0
|
||||
|
||||
@@ -110,6 +110,7 @@ static const struct regs *gsi_regs(struct gsi *gsi)
|
||||
return &gsi_regs_v4_11;
|
||||
|
||||
case IPA_VERSION_5_0:
|
||||
case IPA_VERSION_5_5:
|
||||
return &gsi_regs_v5_0;
|
||||
|
||||
default:
|
||||
|
||||
@@ -44,12 +44,12 @@ static bool ipa_reg_id_valid(struct ipa *ipa, enum ipa_reg_id reg_id)
|
||||
case DST_RSRC_GRP_45_RSRC_TYPE:
|
||||
return version <= IPA_VERSION_3_1 ||
|
||||
version == IPA_VERSION_4_5 ||
|
||||
version == IPA_VERSION_5_0;
|
||||
version >= IPA_VERSION_5_0;
|
||||
|
||||
case SRC_RSRC_GRP_67_RSRC_TYPE:
|
||||
case DST_RSRC_GRP_67_RSRC_TYPE:
|
||||
return version <= IPA_VERSION_3_1 ||
|
||||
version == IPA_VERSION_5_0;
|
||||
version >= IPA_VERSION_5_0;
|
||||
|
||||
case ENDP_FILTER_ROUTER_HSH_CFG:
|
||||
return version < IPA_VERSION_5_0 &&
|
||||
@@ -125,6 +125,8 @@ static const struct regs *ipa_regs(enum ipa_version version)
|
||||
return &ipa_regs_v4_11;
|
||||
case IPA_VERSION_5_0:
|
||||
return &ipa_regs_v5_0;
|
||||
case IPA_VERSION_5_5:
|
||||
return &ipa_regs_v5_5;
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -639,6 +639,7 @@ extern const struct regs ipa_regs_v4_7;
|
||||
extern const struct regs ipa_regs_v4_9;
|
||||
extern const struct regs ipa_regs_v4_11;
|
||||
extern const struct regs ipa_regs_v5_0;
|
||||
extern const struct regs ipa_regs_v5_5;
|
||||
|
||||
const struct reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user