diff options
author | Alex Elder <elder@linaro.org> | 2022-07-12 11:47:21 -0500 |
---|---|---|
committer | Alex Elder <elder@linaro.org> | 2022-07-14 06:52:30 -0500 |
commit | da64aac83df59cd9c5802be3badb523e9501ae28 (patch) | |
tree | 7363134d6a0d98e85d764be26589679129b4133e /ipa_reg-v3.0.c | |
parent | d959000633e06a3c327bba2961a59742de58c117 (diff) |
regs: define the COMP_CFG register
Define the COMP_CFG register offset and fields for each IPA version.
Signed-off-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'ipa_reg-v3.0.c')
-rw-r--r-- | ipa_reg-v3.0.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ipa_reg-v3.0.c b/ipa_reg-v3.0.c new file mode 100644 index 0000000..523a85a --- /dev/null +++ b/ipa_reg-v3.0.c @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "linux.h" +#include "ipa_reg_new.h" + +static const u32 ipa_reg_comp_cfg_field[] = { + [COMP_CFG_ENABLE] = BIT(0), + [COMP_CFG_GSI_SNOC_BYPASS_DIS] = BIT(1), + [COMP_CFG_GEN_QMB_0_SNOC_BYPASS_DIS] = BIT(2), + [COMP_CFG_GEN_QMB_1_SNOC_BYPASS_DIS] = BIT(3), + [COMP_CFG_IPA_DCMP_FAST_CLK_EN] = BIT(4), + /* Bits 5-31 reserved */ +}; +IPA_REG_FIELDS(COMP_CFG, comp_cfg, 0x0000003c); + +static const struct ipa_reg *ipa_reg[] = { + [IPA_REG_COMP_CFG] = &ipa_reg_comp_cfg, +}; + +const struct ipa_regs ipa_regs_v3_0 = { + .reg_count = ARRAY_SIZE(ipa_reg), + .reg = ipa_reg, +}; |