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

net: ipa: add IPA v5.0 configuration data

Add the configuration data required for IPA v5.0, which is used in
the SDX65 SoC.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent faf0678e
...@@ -7,7 +7,7 @@ IPA_REG_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0 ...@@ -7,7 +7,7 @@ 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_REG_VERSIONS := 3.1 3.5.1 4.0 4.5 4.9 4.11 5.0 GSI_REG_VERSIONS := 3.1 3.5.1 4.0 4.5 4.9 4.11 5.0
IPA_DATA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 IPA_DATA_VERSIONS := 3.1 3.5.1 4.2 4.5 4.7 4.9 4.11 5.0
obj-$(CONFIG_QCOM_IPA) += ipa.o obj-$(CONFIG_QCOM_IPA) += ipa.o
......
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2022 Linaro Ltd. * Copyright (C) 2019-2023 Linaro Ltd.
*/ */
#ifndef _IPA_DATA_H_ #ifndef _IPA_DATA_H_
#define _IPA_DATA_H_ #define _IPA_DATA_H_
...@@ -249,5 +249,6 @@ extern const struct ipa_data ipa_data_v4_5; ...@@ -249,5 +249,6 @@ extern const struct ipa_data ipa_data_v4_5;
extern const struct ipa_data ipa_data_v4_7; extern const struct ipa_data ipa_data_v4_7;
extern const struct ipa_data ipa_data_v4_9; extern const struct ipa_data ipa_data_v4_9;
extern const struct ipa_data ipa_data_v4_11; extern const struct ipa_data ipa_data_v4_11;
extern const struct ipa_data ipa_data_v5_0;
#endif /* _IPA_DATA_H_ */ #endif /* _IPA_DATA_H_ */
...@@ -285,7 +285,7 @@ static void ipa_hardware_config_comp(struct ipa *ipa) ...@@ -285,7 +285,7 @@ static void ipa_hardware_config_comp(struct ipa *ipa)
} else if (ipa->version < IPA_VERSION_4_5) { } else if (ipa->version < IPA_VERSION_4_5) {
val |= reg_bit(reg, GSI_MULTI_AXI_MASTERS_DIS); val |= reg_bit(reg, GSI_MULTI_AXI_MASTERS_DIS);
} else { } else {
/* For IPA v4.5 FULL_FLUSH_WAIT_RS_CLOSURE_EN is 0 */ /* For IPA v4.5+ FULL_FLUSH_WAIT_RS_CLOSURE_EN is 0 */
} }
val |= reg_bit(reg, GSI_MULTI_INORDER_RD_DIS); val |= reg_bit(reg, GSI_MULTI_INORDER_RD_DIS);
...@@ -684,6 +684,10 @@ static const struct of_device_id ipa_match[] = { ...@@ -684,6 +684,10 @@ static const struct of_device_id ipa_match[] = {
.compatible = "qcom,sc7280-ipa", .compatible = "qcom,sc7280-ipa",
.data = &ipa_data_v4_11, .data = &ipa_data_v4_11,
}, },
{
.compatible = "qcom,sdx65-ipa",
.data = &ipa_data_v5_0,
},
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, ipa_match); MODULE_DEVICE_TABLE(of, ipa_match);
......
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