diff options
author | Sugar Zhang <sugar.zhang@rock-chips.com> | 2019-04-04 11:51:09 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-04 15:08:41 +0700 |
commit | 624e8e00acafe3d31a7c31e67fa95ce06e324bf8 (patch) | |
tree | d5b3361ab6113a9bd238389a971c32bc42584286 /sound/soc/rockchip/rockchip_pdm.h | |
parent | 072cb68a43663eacae7fe84dcbfd1a81dc692185 (diff) | |
download | linux-stable-624e8e00acafe3d31a7c31e67fa95ce06e324bf8.tar.gz linux-stable-624e8e00acafe3d31a7c31e67fa95ce06e324bf8.tar.bz2 linux-stable-624e8e00acafe3d31a7c31e67fa95ce06e324bf8.zip |
ASoC: rockchip: pdm: fixup pdm fractional div
This patch adds support fractional div for rk3308.
Signed-off-by: Sugar Zhang <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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_pdm.h b/sound/soc/rockchip/rockchip_pdm.h index 00a8fa187d22..ae88644aa334 100644 --- a/sound/soc/rockchip/rockchip_pdm.h +++ b/sound/soc/rockchip/rockchip_pdm.h @@ -53,7 +53,16 @@ #define PDM_VDW_MSK (0x1f << 0) #define PDM_VDW(X) ((X - 1) << 0) +/* PDM CTRL1 */ +#define PDM_FD_NUMERATOR_SFT 16 +#define PDM_FD_NUMERATOR_MSK GENMASK(31, 16) +#define PDM_FD_DENOMINATOR_SFT 0 +#define PDM_FD_DENOMINATOR_MSK GENMASK(15, 0) + /* PDM CLK CTRL */ +#define PDM_CLK_FD_RATIO_MSK BIT(6) +#define PDM_CLK_FD_RATIO_40 (0X0 << 6) +#define PDM_CLK_FD_RATIO_35 BIT(6) #define PDM_CLK_MSK BIT(5) #define PDM_CLK_EN BIT(5) #define PDM_CLK_DIS (0x0 << 5) |