diff options
author | Sugar Zhang <sugar.zhang@rock-chips.com> | 2021-09-03 21:23:24 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-13 01:44:06 +0100 |
commit | d269aa2ab975807764dc2509e4156bb9b6bd0d34 (patch) | |
tree | f9f2ae0e3e4185c83246e6234c51c41079d1ca37 /sound/soc/rockchip/rockchip_pdm.h | |
parent | 0c7985e1b90c1eabc75b01f971eb89733cc51979 (diff) |
ASoC: rockchip: Add support for rv1126 pdm
This patch adds support for rv1126 pdm controller which
redesign cic filiter for better performance.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Link: https://lore.kernel.org/r/1630675410-3354-1-git-send-email-sugar.zhang@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rockchip_pdm.h')
-rw-r--r-- | sound/soc/rockchip/rockchip_pdm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_pdm.h b/sound/soc/rockchip/rockchip_pdm.h index 8e5bbafef7bb..13bfbc286276 100644 --- a/sound/soc/rockchip/rockchip_pdm.h +++ b/sound/soc/rockchip/rockchip_pdm.h @@ -41,6 +41,8 @@ #define PDM_PATH1_EN BIT(28) #define PDM_PATH0_EN BIT(27) #define PDM_HWT_EN BIT(26) +#define PDM_SAMPLERATE_MSK GENMASK(7, 5) +#define PDM_SAMPLERATE(x) ((x) << 5) #define PDM_VDW_MSK (0x1f << 0) #define PDM_VDW(X) ((X - 1) << 0) @@ -66,6 +68,7 @@ #define PDM_CLK_1280FS (0x2 << 0) #define PDM_CLK_2560FS (0x3 << 0) #define PDM_CLK_5120FS (0x4 << 0) +#define PDM_CIC_RATIO_MSK (0x3 << 0) /* PDM HPF CTRL */ #define PDM_HPF_LE BIT(3) |