summaryrefslogtreecommitdiffstats
path: root/drivers/soc/qcom
diff options
context:
space:
mode:
authorRajendra Nayak <quic_rjendra@quicinc.com>2022-09-02 10:05:09 +0530
committerBjorn Andersson <andersson@kernel.org>2022-09-05 21:51:08 -0500
commit1335fc5b24d3fd51bdae0747b153433f2969edfc (patch)
treeac8f07df469aeb8fbc07bd646d748260b502e63a /drivers/soc/qcom
parentb7c84ae757c2e5421f5172d78b76307ace5cde67 (diff)
downloadlinux-1335fc5b24d3fd51bdae0747b153433f2969edfc.tar.bz2
soc: qcom: icc-bwmon: add support for sc7280 LLCC BWMON
Add support for sc7280 BWMON instance measuring traffic between LLCC and memory with the v5 register layout. Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220902043511.17130-3-quic_rjendra@quicinc.com
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r--drivers/soc/qcom/icc-bwmon.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/soc/qcom/icc-bwmon.c b/drivers/soc/qcom/icc-bwmon.c
index 9df47afb0d81..056e630500e0 100644
--- a/drivers/soc/qcom/icc-bwmon.c
+++ b/drivers/soc/qcom/icc-bwmon.c
@@ -654,6 +654,18 @@ static const struct icc_bwmon_data sdm845_llcc_bwmon_data = {
.regmap_cfg = &sdm845_llcc_bwmon_regmap_cfg,
};
+static const struct icc_bwmon_data sc7280_llcc_bwmon_data = {
+ .sample_ms = 4,
+ .count_unit_kb = 64,
+ .default_highbw_kbps = 800 * 1024, /* 800 MBps */
+ .default_medbw_kbps = 256 * 1024, /* 256 MBps */
+ .default_lowbw_kbps = 0,
+ .zone1_thres_count = 16,
+ .zone3_thres_count = 1,
+ .regmap_fields = sdm845_llcc_bwmon_reg_fields,
+ .regmap_cfg = &sdm845_llcc_bwmon_regmap_cfg,
+};
+
static const struct of_device_id bwmon_of_match[] = {
{
.compatible = "qcom,msm8998-bwmon",
@@ -661,6 +673,9 @@ static const struct of_device_id bwmon_of_match[] = {
}, {
.compatible = "qcom,sdm845-llcc-bwmon",
.data = &sdm845_llcc_bwmon_data
+ }, {
+ .compatible = "qcom,sc7280-llcc-bwmon",
+ .data = &sc7280_llcc_bwmon_data
},
{}
};