summaryrefslogtreecommitdiff
path: root/ipa_reg-v4.2.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-07-13 14:52:21 -0500
committerAlex Elder <elder@linaro.org>2022-07-14 15:17:36 -0500
commite97fb5a131d91946816fa73089725a72c914953d (patch)
treefb674bbdf4486651a095a125532d9b10f008f11a /ipa_reg-v4.2.c
parent58d703624c5e818a0ecf2fe1d232697aa13759b4 (diff)
regs: define the COUNTER_CFG register
Define the COUNTER_CFG offset and fields for each IPA version. Signed-off-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'ipa_reg-v4.2.c')
-rw-r--r--ipa_reg-v4.2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipa_reg-v4.2.c b/ipa_reg-v4.2.c
index edb4aff..8d0e820 100644
--- a/ipa_reg-v4.2.c
+++ b/ipa_reg-v4.2.c
@@ -143,6 +143,13 @@ IPA_REG_FIELDS(LOCAL_PKT_PROC_CNTXT, local_pkt_proc_cntxt, 0x000001e8);
/* ipa->available defines valid bits (no fields) */
IPA_REG(AGGR_FORCE_CLOSE, aggr_force_close, 0x000001ec);
+static const u32 ipa_reg_counter_cfg_field[] = {
+ /* Bits 0-3 reserved */
+ [AGGR_GRANULARITY] = GENMASK(8, 4),
+ /* Bits 9-31 reserved */
+};
+IPA_REG_FIELDS(COUNTER_CFG, counter_cfg, 0x000001f0);
+
static const struct ipa_reg *ipa_reg[] = {
[IPA_REG_COMP_CFG] = &ipa_reg_comp_cfg,
[IPA_REG_CLKON_CFG] = &ipa_reg_clkon_cfg,
@@ -156,6 +163,7 @@ static const struct ipa_reg *ipa_reg[] = {
[IPA_REG_BCR] = &ipa_reg_bcr,
[IPA_REG_LOCAL_PKT_PROC_CNTXT] = &ipa_reg_local_pkt_proc_cntxt,
[IPA_REG_AGGR_FORCE_CLOSE] = &ipa_reg_aggr_force_close,
+ [IPA_REG_COUNTER_CFG] = &ipa_reg_counter_cfg,
};
const struct ipa_regs ipa_regs_v4_2 = {